mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-27 06:40:28 -04:00
Fix var rename bug where variable would go back to old name after switching sprites.
This commit is contained in:
parent
bf22cdbf13
commit
a8fc399746
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ class Blocks {
|
|||
}
|
||||
break;
|
||||
case 'var_rename':
|
||||
if (editingTarget && editingTarget.hasOwnProperty(e.varId)) {
|
||||
if (editingTarget && editingTarget.variables.hasOwnProperty(e.varId)) {
|
||||
// This is a local variable, rename on the current target
|
||||
editingTarget.renameVariable(e.varId, e.newName);
|
||||
// Update all the blocks on the current target that use
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue