瀏覽代碼

Start WebVRManager animation when setting the animation callback

Diego Marcos 6 年之前
父節點
當前提交
0d1af0b463
共有 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 () {