summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-07-17 15:11:05 +0200
committerjmoenig <jens@moenig.org>2014-07-17 15:11:05 +0200
commitd88da36762a1e9c05dde8caa7e6f584840eee273 (patch)
tree088a9c00810ecd23cd5a660e3d0759adf4dcc0fd
parentf38fb73cd3bcfad0ae610c8f08fea230b964ccd6 (diff)
downloadsnap-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.js6
-rwxr-xr-xhistory.txt3
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