Sfoglia il codice sorgente

call Canvas3D scene animating by animation manager

David Sehnal 6 anni fa
parent
commit
a7e4507758
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/mol-plugin/state/animation/manager.ts

+ 2 - 0
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();