瀏覽代碼

extend the camera with its configuration, if provided

Raanan Weber 7 年之前
父節點
當前提交
79322c40ff
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;