Merge pull request #555 from rasmushaglund/clone-fix3

Copy _customState for now until blocks have init functions
This commit is contained in:
Chris Willis-Ford 2017-05-08 10:19:27 -07:00 committed by GitHub
commit 5f7eb923bd

View file

@ -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.