diff options
| author | jmoenig <jens@moenig.org> | 2014-07-18 15:21:19 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-07-18 15:21:19 +0200 |
| commit | 7328bfb034dbb2c329fcff7d63e5b34bc7963cd3 (patch) | |
| tree | 6b3e183436235e19d931c90a89859cfbae37ede7 /gui.js | |
| parent | 1076694d9c01a04e78508599aec4e8e1c674d5f5 (diff) | |
| download | snap-yow-7328bfb034dbb2c329fcff7d63e5b34bc7963cd3.tar.gz snap-yow-7328bfb034dbb2c329fcff7d63e5b34bc7963cd3.zip | |
ensure unique names when renaming costumes
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5533,12 +5533,13 @@ CostumeIconMorph.prototype.editRotationPointOnly = function () { CostumeIconMorph.prototype.renameCostume = function () { var costume = this.object, + wardrobe = this.parentThatIsA(WardrobeMorph), ide = this.parentThatIsA(IDE_Morph); new DialogBoxMorph( null, function (answer) { if (answer && (answer !== costume.name)) { - costume.name = answer; + costume.name = wardrobe.sprite.newCostumeName(answer); costume.version = Date.now(); ide.hasChangedMedia = true; } |
