update object name changing name from spatial manager #5449

This commit is contained in:
Andrej730
2024-10-01 16:41:43 +05:00
parent c96c661394
commit 0ca3837fc2
+2 -2
View File
@@ -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):