bim.assign_class - use get_selected_objects

This commit is contained in:
Andrej730
2025-04-09 17:14:51 +05:00
parent 69b5d0940f
commit 4d50dce16d
@@ -197,10 +197,8 @@ class AssignClass(bpy.types.Operator, tool.Ifc.Operator):
objects: list[bpy.types.Object] = []
if self.obj:
objects = [bpy.data.objects[self.obj]]
elif objects := context.selected_objects:
pass
elif obj := context.active_object:
objects = [obj]
else:
objects = list(tool.Blender.get_selected_objects())
if not objects:
self.report({"INFO"}, "No objects selected.")