vim-web 0.3.42-dev.12 → 0.3.42-dev.14
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 +6 -5
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +6 -5
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.js
CHANGED
|
@@ -45701,14 +45701,13 @@ 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
|
-
|
|
45710
|
-
m.mesh.mesh.visible = true;
|
|
45711
|
-
}
|
|
45709
|
+
(_a2 = this._meshes) == null ? void 0 : _a2.forEach((m) => {
|
|
45710
|
+
m.mesh.mesh.visible = true;
|
|
45712
45711
|
});
|
|
45713
45712
|
}
|
|
45714
45713
|
}
|
|
@@ -52894,12 +52893,14 @@ class RenderScene {
|
|
|
52894
52893
|
if (mesh instanceof InstancedMesh2) {
|
|
52895
52894
|
if (this.smallGhostThreshold <= 0) {
|
|
52896
52895
|
mesh.mesh.visible = true;
|
|
52896
|
+
console.log("skip");
|
|
52897
52897
|
continue;
|
|
52898
52898
|
}
|
|
52899
52899
|
const visible2 = mesh.getSubmeshes().some(
|
|
52900
52900
|
(m) => m.object.visible
|
|
52901
52901
|
);
|
|
52902
52902
|
mesh.mesh.visible = !(hide && !visible2 && mesh.size < this.smallGhostThreshold);
|
|
52903
|
+
console.log("visible", mesh.mesh.visible);
|
|
52903
52904
|
}
|
|
52904
52905
|
}
|
|
52905
52906
|
}
|
|
@@ -66871,7 +66872,7 @@ const defaultSettings = {
|
|
|
66871
66872
|
materials: {
|
|
66872
66873
|
useFastMaterial: false,
|
|
66873
66874
|
useGhostMaterial: true,
|
|
66874
|
-
smallGhostThreshold:
|
|
66875
|
+
smallGhostThreshold: 100
|
|
66875
66876
|
},
|
|
66876
66877
|
isolation: {
|
|
66877
66878
|
enable: true
|