From ccdf1cee0a8a65c61f0868f188f41a59e82e2441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Perdig=C3=A3o?= Date: Sat, 23 Nov 2024 10:42:34 -0300 Subject: [PATCH] Hide selection of objects outside the aggregate when in "aggregate edit mode". --- src/bonsai/bonsai/bim/module/aggregate/operator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/aggregate/operator.py b/src/bonsai/bonsai/bim/module/aggregate/operator.py index e9f2c377b0..06fe0fae45 100644 --- a/src/bonsai/bonsai/bim/module/aggregate/operator.py +++ b/src/bonsai/bonsai/bim/module/aggregate/operator.py @@ -412,6 +412,7 @@ class BIM_OT_aggregate_mode_set_edit(bpy.types.Operator, tool.Ifc.Operator): if not obj.data: continue obj.original.display_type = "BOUNDS" + obj.hide_select = True not_editing_obj = props.not_editing_objects.add() not_editing_obj.obj = obj.original @@ -437,6 +438,7 @@ class BIM_OT_disable_aggregate_mode_set_edit(bpy.types.Operator, tool.Ifc.Operat objs = [o.obj for o in props.not_editing_objects] for obj in objs: obj.original.display_type = "TEXTURED" + obj.hide_select = False element = tool.Ifc.get_entity(obj) if not element: continue