|
@@ -777,7 +777,7 @@ module BABYLON {
|
|
|
// A VR display is connected
|
|
|
this._webVRpresenting = vrDisplay.isPresenting;
|
|
|
|
|
|
- if (wasPresenting && !this._webVRpresenting)
|
|
|
+ if (wasPresenting && !this._webVRpresenting && this.isInVRMode)
|
|
|
this.exitVR();
|
|
|
} else {
|
|
|
Tools.Warn('Detected VRDisplayPresentChange on an unknown VRDisplay. Did you can enterVR on the vrExperienceHelper?');
|