Remove zombie method reintroduced in 5830573

edit_container_attributes() was deleted in e79a85a, but somehow got
dragged back in
This commit is contained in:
Bruno Postle
2025-03-22 10:17:41 +00:00
parent 5830573cda
commit 75fe548bb0
-9
View File
@@ -546,15 +546,6 @@ class Spatial(bonsai.core.tool.Spatial):
if active_object:
bpy.context.view_layer.objects.active = active_object
@classmethod
def edit_container_attributes(cls, entity: ifcopenshell.entity_instance) -> None:
# TODO
obj = tool.Ifc.get_object(entity)
bonsai.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)
name = bpy.context.scene.BIMSpatialDecompositionProperties.container_name
if name != entity.Name:
cls.edit_container_name(entity, name)
@classmethod
def edit_container_name(cls, container: ifcopenshell.entity_instance, name: str) -> None:
tool.Ifc.run("attribute.edit_attributes", product=container, attributes={"Name": name})