Merge pull request #597 from ubaldy/master

Orphaned REROUTE now behaves appropriately
This commit is contained in:
Lubos Lenco 2018-04-16 00:15:40 +02:00 committed by GitHub
commit a94cbe3369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,15 @@ def build_node(node, f):
global parsed_labels
if node.type == 'REROUTE':
return build_node(node.inputs[0].links[0].from_node, f)
empty = True
if len(node.inputs) > 0:
if len(node.inputs[0].links) > 0:
empty = False
if not empty:
return build_node(node.inputs[0].links[0].from_node, f)
if empty:
return None
# Get node name
name = '_' + arm.utils.safesrc(node.name)