Trevor Baron преди 7 години
родител
ревизия
fbbee93de2
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/Cameras/VR/babylon.webVRCamera.ts

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

@@ -306,14 +306,14 @@ module BABYLON {
             } else {
                 navigator.getVRDisplays().then((displays: any) => {
                     if (!displays || !displays[0] || !displays[0].stageParameters || !displays[0].stageParameters.sittingToStandingTransform) {
-                            callback(false);
+                        callback(false);
                     } else {
                         this._standingMatrix = new Matrix();
                         Matrix.FromFloat32ArrayToRefScaled(displays[0].stageParameters.sittingToStandingTransform, 0, 1, this._standingMatrix);
                         if (!this.getScene().useRightHandedSystem) {
-                                [2, 6, 8, 9, 14].forEach((num) => {
-                                    if (this._standingMatrix) {
-                                        this._standingMatrix.m[num] *= -1;
+                            [2, 6, 8, 9, 14].forEach((num) => {
+                                if (this._standingMatrix) {
+                                    this._standingMatrix.m[num] *= -1;
                                 }
                             });
                         }