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 + history.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); }; diff --git a/history.txt b/history.txt index 236ba8a..29e3586 100755 --- a/history.txt +++ b/history.txt @@ -2208,4 +2208,4 @@ ______ 140718 ------ * Lists: incorporate Brian’s adhoc fixes, thanks, Brian! -* GUI: Use new mechanism for unique costume names on the paint editor, renamed costumes +* GUI: Use new mechanism for unique costume names on the paint editor, renamed costumes and costumes dragged and dropped onto sprite icons -- cgit v1.3.1