From d0f1b77209cbe961196ef0db574ef7cf18b86ff6 Mon Sep 17 00:00:00 2001 From: Rasmus Haglund Date: Fri, 5 May 2017 21:58:18 +0200 Subject: [PATCH] Copy _customState for now until blocks have init functions --- src/sprites/rendered-target.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index e6323ec73..ad23003c7 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -696,6 +696,7 @@ class RenderedTarget extends Target { newClone.effects = JSON.parse(JSON.stringify(this.effects)); newClone.variables = JSON.parse(JSON.stringify(this.variables)); newClone.lists = JSON.parse(JSON.stringify(this.lists)); + newClone._customState = JSON.parse(JSON.stringify(this._customState)); newClone.initDrawable(); newClone.updateAllDrawableProperties(); // Place behind the current target.