diff options
| author | jmoenig <jens@moenig.org> | 2014-07-18 14:54:29 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-18 14:54:29 +0200 |
| commit | 1076694d9c01a04e78508599aec4e8e1c674d5f5 (patch) | |
| tree | 4d471bc7a87a2345f3d98d63e2fbc64f898e2308 /gui.js | |
| parent | c1d5910f33584837a5c33c98f1e750789e6221fc (diff) | |
| download | snap-yow-1076694d9c01a04e78508599aec4e8e1c674d5f5.tar.gz snap-yow-1076694d9c01a04e78508599aec4e8e1c674d5f5.zip | |
ensure unique names for costumes created by the paint editor
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2014-July-17'; +modules.gui = '2014-July-18'; // Declarations @@ -5930,7 +5930,10 @@ WardrobeMorph.prototype.removeCostumeAt = function (idx) { }; WardrobeMorph.prototype.paintNew = function () { - var cos = new Costume(newCanvas(), "Untitled"), + var cos = new Costume( + newCanvas(), + this.sprite.newCostumeName('Untitled') + ), ide = this.parentThatIsA(IDE_Morph), myself = this; cos.edit(this.world(), ide, true, null, function () { |
