Browse Source

Start WebVRManager animation when setting the animation callback

Diego Marcos 6 năm trước cách đây
mục cha
commit
0d1af0b463
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 () {