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 Thomas Krijnen
parent fc1af4ed93
commit efbe9a543f
+1
View File
@@ -987,6 +987,7 @@ class Cost(bonsai.core.tool.Cost):
def disable_editing_cost_item_parent(cls) -> None: def disable_editing_cost_item_parent(cls) -> None:
props = cls.get_cost_props() props = cls.get_cost_props()
props.active_cost_item_id = 0 props.active_cost_item_id = 0
if props.change_cost_item_parent == True:
props.change_cost_item_parent = False props.change_cost_item_parent = False
@classmethod @classmethod