From 9892dac904fa153e54d7fb9530e8a73b8cefa171 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Fri, 6 Apr 2018 10:37:09 -0400 Subject: [PATCH] Custom state (e.g. tempo, volume, video related state) should show up in a target that has been 'flattened' via JSON.stringify. --- src/sprites/rendered-target.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sprites/rendered-target.js b/src/sprites/rendered-target.js index 35204ec93..9bfb1e352 100644 --- a/src/sprites/rendered-target.js +++ b/src/sprites/rendered-target.js @@ -1003,7 +1003,12 @@ class RenderedTarget extends Target { variables: this.variables, lists: this.lists, costumes: costumes, - sounds: this.getSounds() + sounds: this.getSounds(), + tempo: this.tempo, + volume: this.volume, + videoTransparency: this.videoTransparency, + videoState: this.videoState + }; }