Преглед на файлове

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 преди 5 месеца
родител
ревизия
f2c05ea89c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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