Refresh different types of aggregates at one time

This commit is contained in:
Ryan Schultz
2023-11-15 21:40:15 -06:00
parent f0e5304b8e
commit 67be2e8ce8
@@ -1016,10 +1016,9 @@ class RefreshLinkedAggregate(bpy.types.Operator):
tool.Geometry.delete_ifc_object(tool.Ifc.get_object(element)) tool.Geometry.delete_ifc_object(tool.Ifc.get_object(element))
if len(context.selected_objects) != 1: selected_objects = context.selected_objects
return {"FINISHED"}
selected_obj = context.selected_objects[0] for selected_obj in selected_objects:
selected_element = tool.Ifc.get_entity(selected_obj) selected_element = tool.Ifc.get_entity(selected_obj)
if selected_element.is_a("IfcElementAssembly"): if selected_element.is_a("IfcElementAssembly"):