Set costume directly, no updates are needed

This commit is contained in:
Paul Kaplan 2018-06-06 17:29:48 -04:00
parent bf2879ee0b
commit 28f425d53e

View file

@ -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;
} }