mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
update object name changing name from spatial manager #5449
This commit is contained in:
@@ -60,9 +60,9 @@ def update_elevation(self, context):
|
|||||||
bonsai.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj)
|
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:
|
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):
|
def update_active_container_index(self, context):
|
||||||
|
|||||||
Reference in New Issue
Block a user