mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 13:11:12 -05:00
Made empty sprite name turn into Sprite<n> instead of <n>
This commit is contained in:
parent
7a201faa47
commit
f364eaaab4
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ public class ScratchRuntime {
|
|||
public function renameSprite(newName:String):void {
|
||||
var obj:ScratchObj = app.viewedObj();
|
||||
obj.objName = '';
|
||||
newName = app.stagePane.unusedSpriteName(newName);
|
||||
newName = app.stagePane.unusedSpriteName(newName || 'Sprite1');
|
||||
var oldName:String = obj.objName;
|
||||
obj.objName = newName;
|
||||
for each (var lw:ListWatcher in app.viewedObj().lists) {
|
||||
|
|
Loading…
Reference in a new issue