From 46a6356f93f1b38fe89765d5c9324cebeed166f3 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Tue, 13 Jan 2026 12:33:54 -0600 Subject: [PATCH] update the name of the blender collection, as well, when updating the name of the spatial container. --- src/bonsai/bonsai/bim/module/spatial/prop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/spatial/prop.py b/src/bonsai/bonsai/bim/module/spatial/prop.py index b7ae727a26..3d54581551 100644 --- a/src/bonsai/bonsai/bim/module/spatial/prop.py +++ b/src/bonsai/bonsai/bim/module/spatial/prop.py @@ -98,6 +98,8 @@ def update_name(self: "BIMContainer", context: bpy.types.Context) -> None: tool.Spatial.edit_container_name(element, self.name) if obj := tool.Ifc.get_object(element): tool.Root.set_object_name(obj, element) + if collection := tool.Blender.get_object_bim_props(obj).collection: + collection.name = f"{element.is_a()}/{element.Name or 'Unnamed'}" bonsai.bim.handler.refresh_ui_data()