mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 10:39:56 -05:00
Merge pull request #555 from rasmushaglund/clone-fix3
Copy _customState for now until blocks have init functions
This commit is contained in:
commit
5f7eb923bd
1 changed files with 1 additions and 0 deletions
|
@ -696,6 +696,7 @@ class RenderedTarget extends Target {
|
||||||
newClone.effects = JSON.parse(JSON.stringify(this.effects));
|
newClone.effects = JSON.parse(JSON.stringify(this.effects));
|
||||||
newClone.variables = JSON.parse(JSON.stringify(this.variables));
|
newClone.variables = JSON.parse(JSON.stringify(this.variables));
|
||||||
newClone.lists = JSON.parse(JSON.stringify(this.lists));
|
newClone.lists = JSON.parse(JSON.stringify(this.lists));
|
||||||
|
newClone._customState = JSON.parse(JSON.stringify(this._customState));
|
||||||
newClone.initDrawable();
|
newClone.initDrawable();
|
||||||
newClone.updateAllDrawableProperties();
|
newClone.updateAllDrawableProperties();
|
||||||
// Place behind the current target.
|
// Place behind the current target.
|
||||||
|
|
Loading…
Reference in a new issue