mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
typing
This commit is contained in:
@@ -400,7 +400,7 @@ class SetContainerVisibility(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if self.mode == "ISOLATE":
|
if self.mode == "ISOLATE":
|
||||||
if tool.Ifc.get_schema() == "IFC2X3":
|
if tool.Ifc.get_schema() == "IFC2X3":
|
||||||
containers = tool.Ifc.get().by_type("IfcSpatialStructureElement")
|
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("IfcSpatialElement"))
|
||||||
containers -= set(tool.Ifc.get().by_type("IfcSpatialZone"))
|
containers -= set(tool.Ifc.get().by_type("IfcSpatialZone"))
|
||||||
for container in containers:
|
for container in containers:
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class Collector(bonsai.core.tool.Collector):
|
|||||||
users_collection.objects.unlink(obj)
|
users_collection.objects.unlink(obj)
|
||||||
|
|
||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
|
assert element
|
||||||
|
|
||||||
# Note that tool.Geometry.is_locked is only checked within the if
|
# Note that tool.Geometry.is_locked is only checked within the if
|
||||||
# statements for efficiency as it is a slow check.
|
# statements for efficiency as it is a slow check.
|
||||||
|
|||||||
Reference in New Issue
Block a user