diff options
| author | jmoenig <jens@moenig.org> | 2014-07-18 15:27:28 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-18 15:27:28 +0200 |
| commit | 0e02a5ff6021bf6c5a86909b54dfdce50e1e478e (patch) | |
| tree | 0e44ef33594ab6ecfa6999237348a165f73b58fc | |
| parent | 7328bfb034dbb2c329fcff7d63e5b34bc7963cd3 (diff) | |
| download | snap-yow-0e02a5ff6021bf6c5a86909b54dfdce50e1e478e.tar.gz snap-yow-0e02a5ff6021bf6c5a86909b54dfdce50e1e478e.zip | |
ensure unique costume names when copying costumes via d&d
| -rw-r--r-- | gui.js | 1 | ||||
| -rwxr-xr-x | history.txt | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 |
