From 223575f8505a10050bb5b427ab66953171c4e89c Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 12 Jan 2018 11:20:17 -0500 Subject: [PATCH] Remove extra call to initDrawable that was erasing existing drawable. initDrawable is called in createClone previously, where the new costumes are installed. Calling this again here erases those loaded skins and causes an error when trying to calculate the uniforms when a drag starts. --- src/sprites/rendered-target.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 1288240da..fbd6b4bc8 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -831,7 +831,6 @@ class RenderedTarget extends Target { newTarget.effects = JSON.parse(JSON.stringify(this.effects)); newTarget.variables = JSON.parse(JSON.stringify(this.variables)); newTarget.lists = JSON.parse(JSON.stringify(this.lists)); - newTarget.initDrawable(); newTarget.updateAllDrawableProperties(); newTarget.goBehindOther(this); return newTarget;