提交 53cfc2e2 编写于 作者: M Mr.doob

WebGLRenderer: Fixed missing method in dispose()

上级 d30a14ca
...@@ -505,7 +505,7 @@ function WebGLRenderer( parameters ) { ...@@ -505,7 +505,7 @@ function WebGLRenderer( parameters ) {
vr.dispose(); vr.dispose();
stopAnimation(); animation.stop();
}; };
...@@ -1032,10 +1032,10 @@ function WebGLRenderer( parameters ) { ...@@ -1032,10 +1032,10 @@ function WebGLRenderer( parameters ) {
this.setAnimationLoop = function ( callback ) { this.setAnimationLoop = function ( callback ) {
onAnimationFrameCallback = callback; onAnimationFrameCallback = callback;
animation.start();
vr.setAnimationLoop( callback ); vr.setAnimationLoop( callback );
animation.start();
}; };
// Rendering // Rendering
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册