Fixed updating references

This commit is contained in:
Nathan Dinsmore 2014-06-24 18:13:13 -04:00
parent f364eaaab4
commit d58074ff4f

View file

@ -663,9 +663,9 @@ public class ScratchRuntime {
public function renameSprite(newName:String):void {
var obj:ScratchObj = app.viewedObj();
var oldName:String = obj.objName;
obj.objName = '';
newName = app.stagePane.unusedSpriteName(newName || 'Sprite1');
var oldName:String = obj.objName;
obj.objName = newName;
for each (var lw:ListWatcher in app.viewedObj().lists) {
lw.updateTitle();