Explorar o código

WebGLRenderer: Added isAnimating set. See #11981

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

+ 1 - 0
src/renderers/WebGLRenderer.js

@@ -1013,6 +1013,7 @@ function WebGLRenderer( parameters ) {
 
 		if ( isAnimating ) return;
 		( vr.getDevice() || window ).requestAnimationFrame( loop );
+		isAnimating = true;
 
 	}