diff options
| author | jmoenig <jens@moenig.org> | 2014-07-17 15:11:05 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-17 15:11:05 +0200 |
| commit | d88da36762a1e9c05dde8caa7e6f584840eee273 (patch) | |
| tree | 088a9c00810ecd23cd5a660e3d0759adf4dcc0fd | |
| parent | f38fb73cd3bcfad0ae610c8f08fea230b964ccd6 (diff) | |
| download | snap-d88da36762a1e9c05dde8caa7e6f584840eee273.tar.gz snap-d88da36762a1e9c05dde8caa7e6f584840eee273.zip | |
ensure unique names for imported costumes
Use new mechanism for unique costume names on imported costumes
| -rw-r--r-- | gui.js | 6 | ||||
| -rwxr-xr-x | history.txt | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -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 |
