Skip to content

Commit 3abe5ed

Browse files
committed
Fix generating 3D view drawing when IFC elements don't exist in the Blender scene ( such as IfcDistributionPort)
1 parent 34aed93 commit 3abe5ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/bonsai/bonsai/tool/drawing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,8 @@ def activate_drawing(cls, camera: bpy.types.Object) -> None:
18551855
element_obj_names = set()
18561856
for element in filtered_elements:
18571857
obj = tool.Ifc.get_object(element)
1858+
if not obj:
1859+
continue
18581860
current_representation = tool.Geometry.get_active_representation(obj)
18591861
if current_representation:
18601862
subcontext = current_representation.ContextOfItems

0 commit comments

Comments
 (0)