bim.add_aggregate - use more common way to get all selected objects

This commit is contained in:
Andrej730
2025-05-06 12:16:58 +05:00
parent 297f15737d
commit e5ad35e2c8
@@ -164,7 +164,7 @@ class BIM_OT_add_aggregate(bpy.types.Operator, tool.Ifc.Operator):
return
aggregate = self.create_aggregate(context, ifc_class, self.aggregate_name)
for obj in context.selected_objects:
for obj in tool.Blender.get_selected_objects():
element = tool.Ifc.get_entity(obj)
if not element:
continue