This commit is contained in:
Andrej730
2024-11-12 18:40:38 +05:00
parent e2bf611c17
commit 0004689841
2 changed files with 2 additions and 1 deletions
@@ -400,7 +400,7 @@ class SetContainerVisibility(bpy.types.Operator, tool.Ifc.Operator):
if self.mode == "ISOLATE":
if tool.Ifc.get_schema() == "IFC2X3":
containers = tool.Ifc.get().by_type("IfcSpatialStructureElement")
elif tool.Ifc.get_schema() != "IFC2X3":
else:
containers = set(tool.Ifc.get().by_type("IfcSpatialElement"))
containers -= set(tool.Ifc.get().by_type("IfcSpatialZone"))
for container in containers:
+1
View File
@@ -39,6 +39,7 @@ class Collector(bonsai.core.tool.Collector):
users_collection.objects.unlink(obj)
element = tool.Ifc.get_entity(obj)
assert element
# Note that tool.Geometry.is_locked is only checked within the if
# statements for efficiency as it is a slow check.