mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix generating 3D view drawing when IFC elements don't exist in the Blender scene ( such as IfcDistributionPort)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user