mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +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()
|
element_obj_names = set()
|
||||||
for element in filtered_elements:
|
for element in filtered_elements:
|
||||||
obj = tool.Ifc.get_object(element)
|
obj = tool.Ifc.get_object(element)
|
||||||
|
if not obj:
|
||||||
|
continue
|
||||||
current_representation = tool.Geometry.get_active_representation(obj)
|
current_representation = tool.Geometry.get_active_representation(obj)
|
||||||
if current_representation:
|
if current_representation:
|
||||||
subcontext = current_representation.ContextOfItems
|
subcontext = current_representation.ContextOfItems
|
||||||
|
|||||||
Reference in New Issue
Block a user