mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -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.sprite.deleteCostumeAt(costumeIndex);
|
||||||
|
|
||||||
this.addCostume(costume, newIndex);
|
this.addCostume(costume, newIndex);
|
||||||
this.setCostume(this.getCostumeIndexByName(currentCostume.name));
|
this.currentCostume = this.getCostumeIndexByName(currentCostume.name);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue