未验证 提交 9981113b 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #20753 from Mugen87/dev41

Editor: Trigger rendering when animation is stopped.
......@@ -79,7 +79,9 @@ function Editor() {
refreshSidebarObject3D: new Signal(),
historyChanged: new Signal(),
viewportCameraChanged: new Signal()
viewportCameraChanged: new Signal(),
animationStopped: new Signal()
};
......
......@@ -60,6 +60,8 @@ function SidebarAnimation( editor ) {
actions[ animationsSelect.getValue() ].stop();
signals.animationStopped.dispatch();
}
function changeTimeScale() {
......
......@@ -511,6 +511,12 @@ function Viewport( editor ) {
} );
signals.animationStopped.add( function () {
render();
} );
// background
signals.sceneBackgroundChanged.add( function ( backgroundType, backgroundColor, backgroundTexture, backgroundEquirectangularTexture, environmentType ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册