vim-web 0.3.42-dev.13 → 0.3.42-dev.15

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/dist/vim-web.js CHANGED
@@ -45701,11 +45701,12 @@ class Object3D2 {
45701
45701
  return this._visibleAttribute.value;
45702
45702
  }
45703
45703
  set visible(value) {
45704
+ var _a2;
45704
45705
  if (this._visibleAttribute.apply(value)) {
45705
45706
  this.vim.scene.setDirty();
45706
45707
  }
45707
45708
  if (value) {
45708
- this._meshes.forEach((m) => {
45709
+ (_a2 = this._meshes) == null ? void 0 : _a2.forEach((m) => {
45709
45710
  m.mesh.mesh.visible = true;
45710
45711
  });
45711
45712
  }
@@ -52892,14 +52893,12 @@ class RenderScene {
52892
52893
  if (mesh instanceof InstancedMesh2) {
52893
52894
  if (this.smallGhostThreshold <= 0) {
52894
52895
  mesh.mesh.visible = true;
52895
- console.log("skip");
52896
52896
  continue;
52897
52897
  }
52898
52898
  const visible2 = mesh.getSubmeshes().some(
52899
52899
  (m) => m.object.visible
52900
52900
  );
52901
52901
  mesh.mesh.visible = !(hide && !visible2 && mesh.size < this.smallGhostThreshold);
52902
- console.log("visible", mesh.mesh.visible);
52903
52902
  }
52904
52903
  }
52905
52904
  }
@@ -66871,7 +66870,7 @@ const defaultSettings = {
66871
66870
  materials: {
66872
66871
  useFastMaterial: false,
66873
66872
  useGhostMaterial: true,
66874
- smallGhostThreshold: 100
66873
+ smallGhostThreshold: 10
66875
66874
  },
66876
66875
  isolation: {
66877
66876
  enable: true