mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Remove zombie method reintroduced in 5830573
edit_container_attributes() was deleted in e79a85a, but somehow got
dragged back in
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user