mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 23:30:09 -05:00
Read sprite costume names from JSON, and write currentCostume to JSON
This commit is contained in:
parent
6b545ea16d
commit
ed978e3062
2 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,7 @@ var parseScratchObject = function (object, runtime) {
|
||||||
// @todo: Make sure all the relevant metadata is being pulled out.
|
// @todo: Make sure all the relevant metadata is being pulled out.
|
||||||
sprite.costumes.push({
|
sprite.costumes.push({
|
||||||
skin: costume.skin,
|
skin: costume.skin,
|
||||||
name: costume.costumeName,
|
name: costume.name,
|
||||||
bitmapResolution: costume.bitmapResolution,
|
bitmapResolution: costume.bitmapResolution,
|
||||||
rotationCenterX: costume.rotationCenterX,
|
rotationCenterX: costume.rotationCenterX,
|
||||||
rotationCenterY: costume.rotationCenterY
|
rotationCenterY: costume.rotationCenterY
|
||||||
|
|
|
@ -719,6 +719,7 @@ RenderedTarget.prototype.toJSON = function () {
|
||||||
direction: this.direction,
|
direction: this.direction,
|
||||||
costume: this.getCurrentCostume(),
|
costume: this.getCurrentCostume(),
|
||||||
costumeCount: this.getCostumes().length,
|
costumeCount: this.getCostumes().length,
|
||||||
|
currentCostume: this.currentCostume,
|
||||||
visible: this.visible,
|
visible: this.visible,
|
||||||
rotationStyle: this.rotationStyle,
|
rotationStyle: this.rotationStyle,
|
||||||
blocks: this.blocks._blocks,
|
blocks: this.blocks._blocks,
|
||||||
|
|
Loading…
Reference in a new issue