small fix for 9e67565

This commit is contained in:
Ryan Schultz
2023-09-21 12:58:16 -05:00
parent 9d3881b00e
commit 6536f7b56b
@@ -1187,7 +1187,7 @@ class RefreshAggregate(bpy.types.Operator):
selected_root_entity = tool.Ifc.get_entity(selected_root_obj)
if selected_root_entity.is_a("IfcElementAssembly"):
return
pass
elif selected_root_entity.Decomposes:
if selected_root_entity.Decomposes[0].RelatingObject.is_a("IfcElementAssembly"):
selected_root_entity = selected_root_entity.Decomposes[0].RelatingObject