Procházet zdrojové kódy

fix: can't parse when a node-group has no selected tree

Joseph Brandenburg před 5 měsíci
rodič
revize
46112e39c6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      base_definitions.py

+ 1 - 1
base_definitions.py

@@ -67,7 +67,7 @@ def hash_tree(tree):
     trees=set(); links=[]; hash_data=""
     for node in tree.nodes:
         hash_data+=str(node.name)
-        if hasattr(node, 'node_tree'):
+        if hasattr(node, 'node_tree') and node.node_tree:
             trees.add(node.node_tree)
     for other_tree in trees:
         hash_data+=str(hash_tree(other_tree))