Ver código fonte

Fix: object constraints stopped working

this one happened because I was trying to program too fast
and I missed a check for something when I was factoring in
a new profiler. Amusingly this was the only part of the code
for that commit that I didn't let the LLM touch. Maybe humans
are the weak link and the machine overlords really should take over
Joseph Brandenburg 2 meses atrás
pai
commit
6991e82245
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      readtree.py

+ 3 - 2
readtree.py

@@ -667,8 +667,9 @@ def execute_tree(nodes, base_tree, context, error_popups = False, profile=False)
 
         for n in sorted_nodes:
             try:
-                if profiler: profiler.record(n, "bPrepare", context)
-                else: n.bPrepare(context)
+                if not n.prepared:
+                    if profiler: profiler.record(n, "bPrepare", context)
+                    else: n.bPrepare(context)
                 if not n.executed:
                     if profiler: profiler.record(n, "bRelationshipPass", context)
                     else: n.bRelationshipPass(context)