소스 검색

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