Explorar o código

slight improvment

David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
7245b8b0ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.
                 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();
                 }
             });