diff --git a/src/mol-plugin/state/animation/manager.ts b/src/mol-plugin/state/animation/manager.ts index fc83a7f448e6177c3c4582b7910afbbf901be3c0..89a2c792a33eb1e9b7ae355c7d1c778d938aeef5 100644 --- a/src/mol-plugin/state/animation/manager.ts +++ b/src/mol-plugin/state/animation/manager.ts @@ -89,6 +89,7 @@ class PluginAnimationManager extends PluginComponent<PluginAnimationManager.Stat } start() { + this.context.canvas3d.setSceneAnimating(true); this.updateState({ animationState: 'playing' }); this.triggerUpdate(); @@ -100,6 +101,7 @@ class PluginAnimationManager extends PluginComponent<PluginAnimationManager.Stat } stop() { + this.context.canvas3d.setSceneAnimating(false); if (typeof this._frame !== 'undefined') cancelAnimationFrame(this._frame); this.updateState({ animationState: 'stopped' }); this.triggerUpdate();