setCostume micro optimization

This commit is contained in:
Thomas Weber committed 2021-12-29 12:12:51 -06:00
1 parent 77945b9a04
commit 8d28557437
1 file changed
+1 -1
+1 -1
View File
@@ -447,7 +447,7 @@ class RenderedTarget extends Target {
index, 0, this.sprite.costumes.length - 1
);
if (this.renderer) {
const costume = this.getCostumes()[this.currentCostume];
const costume = this.sprite.costumes[this.currentCostume];
this.renderer.updateDrawableSkinId(this.drawableID, costume.skinId);
if (this.visible) {