mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Use tool.Blender to get selected objects
This commit is contained in:
@@ -348,10 +348,7 @@ class AddClassificationReference(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
if self.obj_type == "Object":
|
if self.obj_type == "Object":
|
||||||
if context.selected_objects:
|
objects = [o.name for o in tool.Blender.get_selected_objects()]
|
||||||
objects = [o.name for o in context.selected_objects]
|
|
||||||
else:
|
|
||||||
objects = [context.active_object.name]
|
|
||||||
else:
|
else:
|
||||||
objects = [self.obj]
|
objects = [self.obj]
|
||||||
props = tool.Classification.get_classification_props()
|
props = tool.Classification.get_classification_props()
|
||||||
|
|||||||
Reference in New Issue
Block a user