فهرست منبع

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 10 ماه پیش
والد
کامیت
6991e82245
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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)