Raanan Weber преди 7 години
родител
ревизия
f8e917fc9b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Viewer/src/managers/sceneManager.ts

+ 1 - 1
Viewer/src/managers/sceneManager.ts

@@ -806,13 +806,13 @@ export class SceneManager {
     }
 
     protected _configureEnvironmentMap(environmentMapConfiguration: IEnvironmentMapConfiguration): any {
-        let rotatquatRotationionY = Quaternion.RotationAxis(Axis.Y, environmentMapConfiguration.rotationY || 0);
         if (environmentMapConfiguration.texture) {
             this.scene.environmentTexture = new BABYLON.CubeTexture(this._getAssetUrl(environmentMapConfiguration.texture), this.scene);
         }
 
         //sanity check
         if (this.scene.environmentTexture) {
+            let rotatquatRotationionY = Quaternion.RotationAxis(Axis.Y, environmentMapConfiguration.rotationY || 0);
             Matrix.FromQuaternionToRef(rotatquatRotationionY, this.scene.environmentTexture.getReflectionTextureMatrix());
         }