icn3d 3.45.6 → 3.45.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.module.js CHANGED
@@ -75246,13 +75246,17 @@ class Scene {
75246
75246
  }
75247
75247
  }
75248
75248
 
75249
- ic.perspectiveCamera = new PerspectiveCamera$1(20, ic.container.whratio, 0.1, 10000);
75250
- ic.perspectiveCamera.position.set(0, 0, ic.cam_z);
75251
- ic.perspectiveCamera.lookAt(new Vector3$1(0, 0, 0));
75249
+ if(!ic.perspectiveCamera) {
75250
+ ic.perspectiveCamera = new PerspectiveCamera$1(20, ic.container.whratio, 0.1, 10000);
75251
+ ic.perspectiveCamera.position.set(0, 0, ic.cam_z);
75252
+ ic.perspectiveCamera.lookAt(new Vector3$1(0, 0, 0));
75253
+ }
75252
75254
 
75253
- ic.orthographicCamera = new OrthographicCamera$1();
75254
- ic.orthographicCamera.position.set(0, 0, ic.cam_z);
75255
- ic.orthographicCamera.lookAt(new Vector3$1(0, 0, 0));
75255
+ if(!ic.orthographicCamera) {
75256
+ ic.orthographicCamera = new OrthographicCamera$1();
75257
+ ic.orthographicCamera.position.set(0, 0, ic.cam_z);
75258
+ ic.orthographicCamera.lookAt(new Vector3$1(0, 0, 0));
75259
+ }
75256
75260
 
75257
75261
  ic.cams = {
75258
75262
  perspective: ic.perspectiveCamera,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.45.6",
3
+ "version": "3.45.7",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {