summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-18 15:27:28 +0200
committerjmoenig <jens@moenig.org>2014-07-18 15:27:28 +0200
commit0e02a5ff6021bf6c5a86909b54dfdce50e1e478e (patch)
tree0e44ef33594ab6ecfa6999237348a165f73b58fc
parent7328bfb034dbb2c329fcff7d63e5b34bc7963cd3 (diff)
downloadsnap-byow-0e02a5ff6021bf6c5a86909b54dfdce50e1e478e.tar.gz
snap-byow-0e02a5ff6021bf6c5a86909b54dfdce50e1e478e.zip
ensure unique costume names when copying costumes via d&d
-rw-r--r--gui.js1
-rwxr-xr-xhistory.txt2
2 files changed, 2 insertions, 1 deletions
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