Support generators and add City Builder example

This commit is contained in:
Carson Katri 2022-11-14 22:32:32 -05:00
commit 3850ec011c
6 changed files with 91 additions and 13 deletions

View file

@ -34,6 +34,8 @@ def build_node(node_type):
State.current_node_tree.links.new(constant._socket, node_input)
outputs = {}
for node_output in node.outputs:
if not node_output.enabled:
continue
outputs[node_output.name.lower().replace(' ', '_')] = Type(node_output)
if len(outputs) == 1:
return list(outputs.values())[0]