Browse Source

extend the camera with its configuration, if provided

Raanan Weber 7 năm trước cách đây
mục cha
commit
79322c40ff
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;