Fix error removing a cost schedule (after 7a44f9e) #5264

It wasn't really leaving orphaned data and interrupting the process of the ifc object deletion but it was leading to confusing errors
This commit is contained in:
Andrej730
2024-08-31 12:58:53 +05:00
parent 03935a91da
commit 799cf47316
+1 -1
View File
@@ -41,8 +41,8 @@ def disable_editing_cost_schedule(cost: tool.Cost) -> None:
def remove_cost_schedule(ifc: tool.Ifc, cost: tool.Cost, cost_schedule: ifcopenshell.entity_instance) -> None:
ifc.run("cost.remove_cost_schedule", cost_schedule=cost_schedule)
cost.remove_stored_schedule_columns(cost_schedule)
ifc.run("cost.remove_cost_schedule", cost_schedule=cost_schedule)
def enable_editing_cost_schedule_attributes(cost: tool.Cost, cost_schedule: ifcopenshell.entity_instance) -> None: