diff options
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2014-July-25'; +modules.gui = '2014-July-29'; // Declarations @@ -1824,12 +1824,9 @@ IDE_Morph.prototype.paintNewSprite = function () { IDE_Morph.prototype.duplicateSprite = function (sprite) { var duplicate = sprite.fullCopy(); - duplicate.name = this.newSpriteName(sprite.name); duplicate.setPosition(this.world().hand.position()); - this.stage.add(duplicate); + duplicate.appearIn(this); duplicate.keepWithin(this.stage); - this.sprites.add(duplicate); - this.corral.addSprite(duplicate); this.selectSprite(duplicate); }; @@ -2853,7 +2850,7 @@ IDE_Morph.prototype.exportGlobalBlocks = function () { }; IDE_Morph.prototype.exportSprite = function (sprite) { - var str = this.serializer.serialize(sprite); + var str = this.serializer.serialize(sprite.allParts()); window.open('data:text/xml,<sprites app="' + this.serializer.app + '" version="' |
