Explorar o código

WebGLRenderer: Fixed missing method in dispose()

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
53cfc2e2e0
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/renderers/WebGLRenderer.js

+ 3 - 3
src/renderers/WebGLRenderer.js

@@ -505,7 +505,7 @@ function WebGLRenderer( parameters ) {
 
 		vr.dispose();
 
-		stopAnimation();
+		animation.stop();
 
 	};
 
@@ -1032,10 +1032,10 @@ function WebGLRenderer( parameters ) {
 	this.setAnimationLoop = function ( callback ) {
 
 		onAnimationFrameCallback = callback;
-		animation.start();
-
 		vr.setAnimationLoop( callback );
 
+		animation.start();
+
 	};
 
 	// Rendering

粤ICP备19079148号