From f364eaaab4f59a304370033c350b8dfa060d2cd9 Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Tue, 24 Jun 2014 18:01:03 -0400 Subject: [PATCH] Made empty sprite name turn into Sprite instead of --- src/scratch/ScratchRuntime.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scratch/ScratchRuntime.as b/src/scratch/ScratchRuntime.as index a339b97..ac2552f 100644 --- a/src/scratch/ScratchRuntime.as +++ b/src/scratch/ScratchRuntime.as @@ -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) {