The stage should always be called 'Stage'.

This commit is contained in:
Karishma Chadha 2018-04-06 10:35:42 -04:00
parent b436b5fd82
commit 2dbcdc2244

View file

@ -215,7 +215,7 @@ const parseScratchObject = function (object, runtime, extensions, topLevel, zip)
const sprite = new Sprite(blocks, runtime); const sprite = new Sprite(blocks, runtime);
// Sprite/stage name from JSON. // Sprite/stage name from JSON.
if (object.hasOwnProperty('objName')) { if (object.hasOwnProperty('objName')) {
sprite.name = object.objName; sprite.name = topLevel ? 'Stage' : object.objName;
} }
// Costumes from JSON. // Costumes from JSON.
const costumePromises = []; const costumePromises = [];