From 28f425d53eb12f531101dfa50847c8d7f30985a4 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Wed, 6 Jun 2018 17:29:48 -0400 Subject: [PATCH] Set costume directly, no updates are needed --- src/sprites/rendered-target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index f9607b8bc..d6fa70651 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -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; }