From d0a71dcaf960b5a8f25c49ee9a67e43c05e2249a Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Thu, 5 Apr 2018 15:45:56 -0400 Subject: [PATCH] store the ghost effect in case preview is setup after it was last set --- src/io/video.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io/video.js b/src/io/video.js index dcecdbd0..f961ce48 100644 --- a/src/io/video.js +++ b/src/io/video.js @@ -196,6 +196,7 @@ class Video { * @param {number} ghost from 0 (visible) to 100 (invisible) - ghost effect */ setPreviewGhost (ghost) { + this._ghost = ghost; if (this._drawable) { this.runtime.renderer.updateDrawableProperties(this._drawable, {ghost}); } @@ -271,6 +272,7 @@ class Video { // if we haven't already created and started a preview frame render loop, do so if (!this._renderPreviewFrame) { renderer.updateDrawableProperties(this._drawable, { + ghost: this._ghost, visible: true });