fix infinite recursion error

previously there was an almost silent error because the update function was called every time. Now it should be fixed.
This commit is contained in:
Massimo Fabbro
2026-03-12 21:16:57 +01:00
committed by Massimo Fabbro
parent 32a7de66de
commit 2d05398b1c
+2 -1
View File
@@ -987,7 +987,8 @@ class Cost(bonsai.core.tool.Cost):
def disable_editing_cost_item_parent(cls) -> None:
props = cls.get_cost_props()
props.active_cost_item_id = 0
props.change_cost_item_parent = False
if props.change_cost_item_parent == True:
props.change_cost_item_parent = False
@classmethod
def load_cost_item_quantities(cls, cost_item: Optional[ifcopenshell.entity_instance] = None) -> None: