Skip to content
Snippets Groups Projects
Commit a7e45077 authored by David Sehnal's avatar David Sehnal
Browse files

call Canvas3D scene animating by animation manager

parent cdf48cd7
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment