vim-web 0.3.42-dev.11 → 0.3.42-dev.13
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.iife.js +8 -1
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +8 -1
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -45704,6 +45704,11 @@ class Object3D2 {
|
|
|
45704
45704
|
if (this._visibleAttribute.apply(value)) {
|
|
45705
45705
|
this.vim.scene.setDirty();
|
|
45706
45706
|
}
|
|
45707
|
+
if (value) {
|
|
45708
|
+
this._meshes.forEach((m) => {
|
|
45709
|
+
m.mesh.mesh.visible = true;
|
|
45710
|
+
});
|
|
45711
|
+
}
|
|
45707
45712
|
}
|
|
45708
45713
|
/**
|
|
45709
45714
|
* Gets or sets the display color of this object.
|
|
@@ -52887,12 +52892,14 @@ class RenderScene {
|
|
|
52887
52892
|
if (mesh instanceof InstancedMesh2) {
|
|
52888
52893
|
if (this.smallGhostThreshold <= 0) {
|
|
52889
52894
|
mesh.mesh.visible = true;
|
|
52895
|
+
console.log("skip");
|
|
52890
52896
|
continue;
|
|
52891
52897
|
}
|
|
52892
52898
|
const visible2 = mesh.getSubmeshes().some(
|
|
52893
52899
|
(m) => m.object.visible
|
|
52894
52900
|
);
|
|
52895
52901
|
mesh.mesh.visible = !(hide && !visible2 && mesh.size < this.smallGhostThreshold);
|
|
52902
|
+
console.log("visible", mesh.mesh.visible);
|
|
52896
52903
|
}
|
|
52897
52904
|
}
|
|
52898
52905
|
}
|
|
@@ -66864,7 +66871,7 @@ const defaultSettings = {
|
|
|
66864
66871
|
materials: {
|
|
66865
66872
|
useFastMaterial: false,
|
|
66866
66873
|
useGhostMaterial: true,
|
|
66867
|
-
smallGhostThreshold:
|
|
66874
|
+
smallGhostThreshold: 100
|
|
66868
66875
|
},
|
|
66869
66876
|
isolation: {
|
|
66870
66877
|
enable: true
|