diff --git a/editor/js/Editor.js b/editor/js/Editor.js index 8eae4d692328886c2e768312f6a4ced3347f982f..5f62fcc917c5e804cb194a13a9e6f7e475807b39 100644 --- a/editor/js/Editor.js +++ b/editor/js/Editor.js @@ -79,7 +79,9 @@ function Editor() { refreshSidebarObject3D: new Signal(), historyChanged: new Signal(), - viewportCameraChanged: new Signal() + viewportCameraChanged: new Signal(), + + animationStopped: new Signal() }; diff --git a/editor/js/Sidebar.Animation.js b/editor/js/Sidebar.Animation.js index 2ca9d4a482e360a4e165c48ec5ea6975fa709414..4d2eef9a394dd3bc7cec268372a8306be822e620 100644 --- a/editor/js/Sidebar.Animation.js +++ b/editor/js/Sidebar.Animation.js @@ -60,6 +60,8 @@ function SidebarAnimation( editor ) { actions[ animationsSelect.getValue() ].stop(); + signals.animationStopped.dispatch(); + } function changeTimeScale() { diff --git a/editor/js/Viewport.js b/editor/js/Viewport.js index 19541bedeb8d3c43b914117984c3f015f1779fad..7d4b29681e9783bc5c44354b22d9fee13db58a80 100644 --- a/editor/js/Viewport.js +++ b/editor/js/Viewport.js @@ -511,6 +511,12 @@ function Viewport( editor ) { } ); + signals.animationStopped.add( function () { + + render(); + + } ); + // background signals.sceneBackgroundChanged.add( function ( backgroundType, backgroundColor, backgroundTexture, backgroundEquirectangularTexture, environmentType ) {