Read sprite costume names from JSON, and write currentCostume to JSON
This commit is contained in:
1 parent
6b545ea16d
commit
ed978e3062
2 files changed
+2
-1
No files matched your search
@@ -70,7 +70,7 @@ var parseScratchObject = function (object, runtime) {
|
||||
// @todo: Make sure all the relevant metadata is being pulled out.
|
||||
sprite.costumes.push({
|
||||
skin: costume.skin,
|
||||
name: costume.costumeName,
|
||||
name: costume.name,
|
||||
bitmapResolution: costume.bitmapResolution,
|
||||
rotationCenterX: costume.rotationCenterX,
|
||||
rotationCenterY: costume.rotationCenterY
|
||||
|
||||
@@ -719,6 +719,7 @@ RenderedTarget.prototype.toJSON = function () {
|
||||
direction: this.direction,
|
||||
costume: this.getCurrentCostume(),
|
||||
costumeCount: this.getCostumes().length,
|
||||
currentCostume: this.currentCostume,
|
||||
visible: this.visible,
|
||||
rotationStyle: this.rotationStyle,
|
||||
blocks: this.blocks._blocks,
|
||||
|
||||
Reference in new issue
Block a user