Explorar o código

Merge pull request #15991 from dmarcos/fixVRAnimation

Start WebVRManager animation when setting the animation callback
Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
3b2137d815
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 () {