Fix generating 3D view drawing when IFC elements don't exist in the Blender scene ( such as IfcDistributionPort)

This commit is contained in:
myoualid
2024-09-10 17:16:09 +01:00
parent 34aed93b7b
commit 3abe5edd21
+2
View File
@@ -1855,6 +1855,8 @@ class Drawing(bonsai.core.tool.Drawing):
element_obj_names = set()
for element in filtered_elements:
obj = tool.Ifc.get_object(element)
if not obj:
continue
current_representation = tool.Geometry.get_active_representation(obj)
if current_representation:
subcontext = current_representation.ContextOfItems