setCostume micro optimization
This commit is contained in:
1 parent
77945b9a04
commit
8d28557437
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user