mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Fix issue with DuplicateMoveLinkedAggregate object selection.
When dealing with multiple aggregates, the operator was not selecting the right aggregate to move.
This commit is contained in:
@@ -1315,6 +1315,10 @@ class DuplicateMoveLinkedAggregate(bpy.types.Operator):
|
|||||||
if location_from_3d_cursor:
|
if location_from_3d_cursor:
|
||||||
get_location_from_3d_cursor(old_to_new, selected_element)
|
get_location_from_3d_cursor(old_to_new, selected_element)
|
||||||
|
|
||||||
|
bpy.ops.object.select_all(action="DESELECT")
|
||||||
|
new_aggregate = old_to_new[selected_element][0]
|
||||||
|
tool.Blender.set_active_object(tool.Ifc.get_object(new_aggregate))
|
||||||
|
|
||||||
bonsai.bim.handler.refresh_ui_data()
|
bonsai.bim.handler.refresh_ui_data()
|
||||||
|
|
||||||
return old_to_new
|
return old_to_new
|
||||||
|
|||||||
Reference in New Issue
Block a user