Browse Source

extend the camera with its configuration, if provided

Raanan Weber 7 years ago
parent
commit
79322c40ff
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Viewer/src/viewer/viewer.ts

+ 2 - 0
Viewer/src/viewer/viewer.ts

@@ -405,6 +405,8 @@ export abstract class AbstractViewer {
             this.camera.rotationQuaternion = new Quaternion(cameraConfig.rotation.x || 0, cameraConfig.rotation.y || 0, cameraConfig.rotation.z || 0, cameraConfig.rotation.w || 0)
         }
 
+        this.extendClassWithConfig(this.camera, cameraConfig);
+
         this.camera.minZ = cameraConfig.minZ || this.camera.minZ;
         this.camera.maxZ = cameraConfig.maxZ || this.camera.maxZ;