浏览代码

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 () {