From 0ca3837fc2b25da6b12e7ff23fa5e8a4f3568124 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 1 Oct 2024 16:41:43 +0500 Subject: [PATCH] update object name changing name from spatial manager #5449 --- src/bonsai/bonsai/bim/module/spatial/prop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/spatial/prop.py b/src/bonsai/bonsai/bim/module/spatial/prop.py index e1cc04b1b9..27e36e518e 100644 --- a/src/bonsai/bonsai/bim/module/spatial/prop.py +++ b/src/bonsai/bonsai/bim/module/spatial/prop.py @@ -60,9 +60,9 @@ def update_elevation(self, context): bonsai.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj) -def update_name(self, context): +def update_name(self: "BIMContainer", context: bpy.types.Context) -> None: if ifc_definition_id := self.ifc_definition_id: - tool.Spatial.edit_container_name(tool.Ifc.get().by_id(ifc_definition_id), self.name) + tool.Ifc.get_object(tool.Ifc.get().by_id(ifc_definition_id)).name = self.name def update_active_container_index(self, context):