From d2b05ea3dccaa3f7f22ef9ea3bf3a9df89cdd0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Tue, 7 Jan 2025 17:59:59 -0300 Subject: [PATCH] Fix bug related to constraints and aggregate duplication --- src/bonsai/bonsai/tool/root.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bonsai/bonsai/tool/root.py b/src/bonsai/bonsai/tool/root.py index e5e689a0da..a19bb227f5 100644 --- a/src/bonsai/bonsai/tool/root.py +++ b/src/bonsai/bonsai/tool/root.py @@ -329,6 +329,7 @@ class Root(bonsai.core.tool.Root): ) continue + tool.Aggregate.apply_constraints(tool.Ifc.get_object(new[0])) bonsai.core.aggregate.assign_object( tool.Ifc, tool.Aggregate, @@ -350,6 +351,10 @@ class Root(bonsai.core.tool.Root): related_obj=tool.Ifc.get_object(tool.Ifc.get_entity(obj)), ) + tool.Aggregate.constrain_all_parts_to_aggregate(tool.Ifc.get_object(new_aggregate[0])) + tool.Blender.select_and_activate_single_object(bpy.context, tool.Ifc.get_object(new_aggregate[0])) + + @classmethod def run_geometry_add_representation( cls,