Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -769,7 +769,7 @@ function VisibilityApplier() {
|
|||||||
const modelId = root.userData?.modelId as string | undefined;
|
const modelId = root.userData?.modelId as string | undefined;
|
||||||
if (!modelId) return;
|
if (!modelId) return;
|
||||||
root.traverse((el) => {
|
root.traverse((el) => {
|
||||||
if (!el.userData?.ifcElement) return;
|
if (!el.userData?.ifcElement && !(isPickableModelMesh(el) && !hasIfcAncestor(el))) return;
|
||||||
const key = elementKey(modelId, el);
|
const key = elementKey(modelId, el);
|
||||||
const hidden = hiddenElementKeys.has(key);
|
const hidden = hiddenElementKeys.has(key);
|
||||||
const isolated = isolatedElementKeys ? !isolatedElementKeys.has(key) : false;
|
const isolated = isolatedElementKeys ? !isolatedElementKeys.has(key) : false;
|
||||||
|
|||||||
Reference in New Issue
Block a user