Browse Source

Merge pull request #7159 from BabylonJS/vrModeLasers

Lasers on when entering VR on the oculus quest
David Catuhe 5 years ago
parent
commit
602eff5a09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cameras/VR/vrExperienceHelper.ts

+ 1 - 1
src/Cameras/VR/vrExperienceHelper.ts

@@ -831,7 +831,7 @@ export class VRExperienceHelper {
 
         // Exiting VR mode double tapping the touch screen
         this._scene.onPrePointerObservable.add(() => {
-            if (this.isInVRMode && this.exitVROnDoubleTap) {
+            if (this._hasEnteredVR && this.exitVROnDoubleTap) {
                 this.exitVR();
                 if (this._fullscreenVRpresenting) {
                     this._scene.getEngine().exitFullscreen();