From d88da36762a1e9c05dde8caa7e6f584840eee273 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Thu, 17 Jul 2014 15:11:05 +0200 Subject: ensure unique names for imported costumes Use new mechanism for unique costume names on imported costumes --- gui.js | 6 ++++-- history.txt | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gui.js b/gui.js index ffb414d..2bdcb56 100644 --- a/gui.js +++ b/gui.js @@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2014-July-11'; +modules.gui = '2014-July-14'; // Declarations @@ -1498,7 +1498,9 @@ IDE_Morph.prototype.reactToWorldResize = function (rect) { IDE_Morph.prototype.droppedImage = function (aCanvas, name) { var costume = new Costume( aCanvas, - name ? name.split('.')[0] : '' // up to period + this.currentSprite.newCostumeName( + name ? name.split('.')[0] : '' // up to period + ) ); if (costume.isTainted()) { diff --git a/history.txt b/history.txt index da678a1..84cfc2f 100755 --- a/history.txt +++ b/history.txt @@ -2202,4 +2202,5 @@ ______ ------ * new translation into Bangla (Bengali)!!! Yay, thanks, Mokter!! * Lists: make internal list ops iterative (instead of recursive), thanks, Brian! -* Objects, Blocks: new feature (hidden in dev mode): Save screenshot, thanks, Viral! +* Objects, Blocks: new feature (hidden in dev mode): Save screenshot, thanks, Viraj! +* GUI: Use new mechanism for unique costume names on imported costumes as well -- cgit v1.3.1