David Catuhe před 8 roky
rodič
revize
7245b8b0ba
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Cameras/VR/babylon.webVRCamera.ts

+ 1 - 1
src/Cameras/VR/babylon.webVRCamera.ts

@@ -108,7 +108,7 @@ module BABYLON {
                 //reset the rig parameters.
                 //reset the rig parameters.
                 this.setCameraRigMode(Camera.RIG_MODE_WEBVR, { parentCamera: this, vrDisplay: this._vrDevice, frameData: this._frameData, specs: this._specsVersion });
                 this.setCameraRigMode(Camera.RIG_MODE_WEBVR, { parentCamera: this, vrDisplay: this._vrDevice, frameData: this._frameData, specs: this._specsVersion });
 
 
-                if (this._attached && this._vrDevice) {
+                if (this._attached) {
                     this.getEngine().enableVR();
                     this.getEngine().enableVR();
                 }
                 }
             });
             });