fixed exporting sprites

snap7
jmoenig 2021-07-23 09:40:21 +02:00
rodzic b956a49c86
commit f4f709689b
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -32,6 +32,7 @@
### 2021-07-23
* byob, objects, gui, store: support custom categories in libraries
* gui, byob: arrange custom categories alphabetically
* store: fixed exporting sprites
### 2021-07-22
* store: serialize user defined block palettes

Wyświetl plik

@ -1816,7 +1816,7 @@ StageMorph.prototype.toXML = function (serializer) {
};
SpriteMorph.prototype.toXML = function (serializer) {
var idx = serializer.root.sprites.asArray().indexOf(this) + 1,
var idx = serializer.scene.sprites.asArray().indexOf(this) + 1,
costumeIdx = this.getCostumeIdx(),
noCostumes = this.inheritsAttribute('costumes'),
noSounds = this.inheritsAttribute('sounds'),