@smarterplan/ngx-smarterplan-core 1.2.36 → 1.2.38

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.
@@ -3336,7 +3336,16 @@ class MatterportService {
3336
3336
  this.dictionnaryObjects3D.get(uuid).obj3D.visible = false;
3337
3337
  }
3338
3338
  getObject3DModelNodeFromDictionnary(uuid) {
3339
- return this.dictionnaryObjects3D.get(uuid);
3339
+ let obj = this.dictionnaryObjects3D.get(uuid);
3340
+ if (!obj) {
3341
+ console.log("weird thing again");
3342
+ return null;
3343
+ }
3344
+ //might break things or fix everything ..?
3345
+ if (obj.obj3D.uuid != uuid) {
3346
+ console.log("we have THE problem");
3347
+ obj.obj3D.uuid = uuid;
3348
+ }
3340
3349
  }
3341
3350
  /**
3342
3351
  * Creates MattertagData and start repositioning (creates temporary mattertag that follows the cursor)
@@ -3954,7 +3963,10 @@ class MatterportService {
3954
3963
  toggleObjectVisibility(objectId) {
3955
3964
  let obj = this.dictionnaryObjects3D.get(objectId);
3956
3965
  obj.obj3D.visible = !obj.obj3D.visible;
3957
- //return obj.obj3D.visible;
3966
+ }
3967
+ isObjectVisible(objectId) {
3968
+ let obj = this.dictionnaryObjects3D.get(objectId);
3969
+ return obj.obj3D.visible;
3958
3970
  }
3959
3971
  async pointCameraTo3DObject(objectId) {
3960
3972
  let obj = this.dictionnaryObjects3D.get(objectId);