Skip to content

Commit 3b2137d

Browse files
authored
Merge pull request #15991 from dmarcos/fixVRAnimation
Start WebVRManager animation when setting the animation callback
2 parents 5200ef6 + 0d1af0b commit 3b2137d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/renderers/webvr/WebVRManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ function WebVRManager( renderer ) {
379379

380380
animation.setAnimationLoop( callback );
381381

382+
if ( isPresenting() ) { animation.start(); }
383+
382384
};
383385

384386
this.submitFrame = function () {

0 commit comments

Comments
 (0)