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.
This commit is contained in:
Paul Kaplan 2018-01-12 11:20:17 -05:00
parent c6c01e7c93
commit 223575f850

View file

@ -831,7 +831,6 @@ class RenderedTarget extends Target {
newTarget.effects = JSON.parse(JSON.stringify(this.effects)); newTarget.effects = JSON.parse(JSON.stringify(this.effects));
newTarget.variables = JSON.parse(JSON.stringify(this.variables)); newTarget.variables = JSON.parse(JSON.stringify(this.variables));
newTarget.lists = JSON.parse(JSON.stringify(this.lists)); newTarget.lists = JSON.parse(JSON.stringify(this.lists));
newTarget.initDrawable();
newTarget.updateAllDrawableProperties(); newTarget.updateAllDrawableProperties();
newTarget.goBehindOther(this); newTarget.goBehindOther(this);
return newTarget; return newTarget;