Bläddra i källkod

Merge branch 'webVRAsyncMethods' of https://github.com/TrevorDev/Babylon.js into webVRAsyncMethods

Trevor Baron 7 år sedan
förälder
incheckning
552417e24d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Cameras/VR/babylon.webVRCamera.ts

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

@@ -286,7 +286,7 @@ module BABYLON {
          * @returns the distance in meters from the vrDevice to ground in device space. If standing matrix is not supported for the vrDevice 0 is returned.
          */
         public deviceDistanceToRoomGround(): number {
-            if (this._standingMatrix && this._defaultHeight === undefined) {
+            if (this._standingMatrix) {
                 // Add standing matrix offset to get real offset from ground in room
                 this._standingMatrix.getTranslationToRef(this._workingVector);
                 return this._deviceRoomPosition.y + this._workingVector.y