Преглед изворни кода

Merge pull request #15991 from dmarcos/fixVRAnimation

Start WebVRManager animation when setting the animation callback
Mr.doob пре 6 година
родитељ
комит
3b2137d815
1 измењених фајлова са 2 додато и 0 уклоњено
  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 () {