Minor fix to disable_aggregate_mode().

This commit is contained in:
Bruno Perdigão
2024-12-17 21:00:17 -03:00
committed by Bruno Perdigão
parent 9838a54173
commit 5ebaaa6c8c
+5 -1
View File
@@ -194,10 +194,14 @@ class Aggregate(bonsai.core.tool.Aggregate):
if not element:
continue
objs = [o.obj for o in props.editing_objects]
parts = ifcopenshell.util.element.get_parts(tool.Ifc.get_entity(props.editing_aggregate))
objs = [tool.Ifc.get_object(part) for part in parts]
for obj in objs:
tool.Aggregate.enable_constraints(obj)
if context.space_data.local_view:
bpy.ops.view3d.localview()
props.in_aggregate_mode = False
props.not_editing_objects.clear()
props.editing_objects.clear()