mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
bim.assign_class - use get_selected_objects
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user