Procházet zdrojové kódy

Start WebVRManager animation when setting the animation callback

Diego Marcos před 6 roky
rodič
revize
0d1af0b463
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/renderers/webvr/WebVRManager.js

+ 2 - 0
src/renderers/webvr/WebVRManager.js

@@ -379,6 +379,8 @@ function WebVRManager( renderer ) {
 
 		animation.setAnimationLoop( callback );
 
+		if ( isPresenting() ) { animation.start(); }
+
 	};
 
 	this.submitFrame = function () {