Copy _customState for now until blocks have init functions

This commit is contained in:
Rasmus Haglund 2017-05-05 21:58:18 +02:00
parent 75a9ad4675
commit d0f1b77209

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.