Procházet zdrojové kódy

UI: notify user if tree failed to parse

...although this should not happen and indicates a bug.
When I added this, it was because of an ImportError that
was messing things up, for example.
Joseph Brandenburg před 5 měsíci
rodič
revize
f2c05ea89c
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      readtree.py

+ 1 - 0
readtree.py

@@ -494,6 +494,7 @@ def execution_error_cleanup(node, exception, switch_objects = [], show_error=Fal
     return exception
 
 def execute_tree(nodes, base_tree, context, error_popups = False):
+    assert nodes is not None, "Failed to parse tree."
     import bpy
     from time import time
     from .node_container_common import GraphError