mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Set costume directly, no updates are needed
This commit is contained in:
parent
bf2879ee0b
commit
28f425d53e
1 changed files with 1 additions and 1 deletions
|
@ -659,7 +659,7 @@ class RenderedTarget extends Target {
|
|||
this.sprite.deleteCostumeAt(costumeIndex);
|
||||
|
||||
this.addCostume(costume, newIndex);
|
||||
this.setCostume(this.getCostumeIndexByName(currentCostume.name));
|
||||
this.currentCostume = this.getCostumeIndexByName(currentCostume.name);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue