Przeglądaj źródła

Fix: interface panel doesn't have an identifier

Joseph Brandenburg 3 tygodni temu
rodzic
commit
8c945311a8
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      readtree.py

+ 2 - 0
readtree.py

@@ -295,8 +295,10 @@ def get_schema_length_dependencies(node, all_nodes={}):
 def insert_default_values_base_tree(base_tree, all_mantis_nodes):
     # we can get this by name because group inputs are gathered to the bl_idname
     InputNode = all_mantis_nodes.get((None, 'NodeGroupInput'))
+    if InputNode is None: return # nothing to do here.
     for output in InputNode.outputs:
         for interface_item in base_tree.interface.items_tree:
+            if interface_item.item_type == 'PANEL': continue
             if interface_item.identifier == output.name: break
         else:
             raise RuntimeError(f"Default value {output.name} does not exist in {base_tree.name} ")