mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-15 13:48:09 +00:00
bim.add_aggregate - use more common way to get all selected objects
This commit is contained in:
@@ -164,7 +164,7 @@ class BIM_OT_add_aggregate(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
return
|
return
|
||||||
aggregate = self.create_aggregate(context, ifc_class, self.aggregate_name)
|
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)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if not element:
|
if not element:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user