提交 25ecf071 编写于 作者: B brunnerh

Made animation loop interruptible and disposable.

上级 a885290f
......@@ -530,6 +530,7 @@ function WebGLRenderer( parameters ) {
vr.dispose();
isAnimating = false;
};
// Events
......@@ -1066,6 +1067,9 @@ function WebGLRenderer( parameters ) {
function loop( time ) {
if ( isAnimating === false || onAnimationFrame === null )
return;
if ( onAnimationFrame !== null ) onAnimationFrame( time );
var device = vr.getDevice();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册