mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
update the name of the blender collection, as well, when updating the name of the spatial container.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user