From 0e02a5ff6021bf6c5a86909b54dfdce50e1e478e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 18 Jul 2014 15:27:28 +0200 Subject: ensure unique costume names when copying costumes via d&d --- gui.js | 1 + 1 file changed, 1 insertion(+) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 5bccd6d..6770465 100644 --- a/gui.js +++ b/gui.js @@ -5374,6 +5374,7 @@ SpriteIconMorph.prototype.copyStack = function (block) { SpriteIconMorph.prototype.copyCostume = function (costume) { var dup = costume.copy(); + dup.name = this.object.newCostumeName(dup.name); this.object.addCostume(dup); this.object.wearCostume(dup); }; -- cgit v1.3.1