소스 검색

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