Minor
This commit is contained in:
parent
a94cbe3369
commit
65dcb7f851
|
@ -33,8 +33,8 @@ class GateNode(Node, ArmLogicTreeNode):
|
|||
self.inputs.new('ArmNodeSocketAction', 'In')
|
||||
self.inputs.new('NodeSocketShader', 'Value')
|
||||
self.inputs.new('NodeSocketShader', 'Value')
|
||||
self.outputs.new('ArmNodeSocketAction', 'Out')
|
||||
self.outputs.new('ArmNodeSocketAction', 'Else')
|
||||
self.outputs.new('ArmNodeSocketAction', 'True')
|
||||
self.outputs.new('ArmNodeSocketAction', 'False')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
||||
|
|
|
@ -65,14 +65,9 @@ def build_node(node, f):
|
|||
global parsed_labels
|
||||
|
||||
if node.type == 'REROUTE':
|
||||
empty = True
|
||||
if len(node.inputs) > 0:
|
||||
if len(node.inputs[0].links) > 0:
|
||||
empty = False
|
||||
|
||||
if not empty:
|
||||
if len(node.inputs) > 0 and len(node.inputs[0].links) > 0:
|
||||
return build_node(node.inputs[0].links[0].from_node, f)
|
||||
if empty:
|
||||
else:
|
||||
return None
|
||||
|
||||
# Get node name
|
||||
|
|
Loading…
Reference in a new issue