Prechádzať zdrojové kódy

inspection plakcement

Raanan Weber 7 rokov pred
rodič
commit
f8e917fc9b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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());
         }