Explorar el Código

inspection plakcement

Raanan Weber hace 7 años
padre
commit
f8e917fc9b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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());
         }