mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
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:
parent
c6c01e7c93
commit
223575f850
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue