mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed updating references
This commit is contained in:
parent
f364eaaab4
commit
d58074ff4f
1 changed files with 1 additions and 1 deletions
|
@ -663,9 +663,9 @@ public class ScratchRuntime {
|
||||||
|
|
||||||
public function renameSprite(newName:String):void {
|
public function renameSprite(newName:String):void {
|
||||||
var obj:ScratchObj = app.viewedObj();
|
var obj:ScratchObj = app.viewedObj();
|
||||||
|
var oldName:String = obj.objName;
|
||||||
obj.objName = '';
|
obj.objName = '';
|
||||||
newName = app.stagePane.unusedSpriteName(newName || 'Sprite1');
|
newName = app.stagePane.unusedSpriteName(newName || 'Sprite1');
|
||||||
var oldName:String = obj.objName;
|
|
||||||
obj.objName = newName;
|
obj.objName = newName;
|
||||||
for each (var lw:ListWatcher in app.viewedObj().lists) {
|
for each (var lw:ListWatcher in app.viewedObj().lists) {
|
||||||
lw.updateTitle();
|
lw.updateTitle();
|
||||||
|
|
Loading…
Reference in a new issue