Skip to content

Commit 9b76e6f

Browse files
committed
Fixed issue with updating graphs.
1 parent 15e0a1b commit 9b76e6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

floppy/node.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def isAvailable(self):
142142
if self.pure == 1:
143143
self.pure = 2
144144
# self.usedDefault = True
145-
# print('+++++++++++++++++', self.name, self.value, self.valueSet, self.owner, self.usedDefault)
145+
# print('+++++++++++++++++', self.name, self.value, self.valueSet, self.owner, self.usedDefault, self.pure)
146146
return True
147147
return False
148148

@@ -286,8 +286,8 @@ def __init__(self, nodeID, graph):
286286
self.outputBuffer[out.name] = None
287287
if not self.inputs.keys():
288288
raise AttributeError('Nodes without any input are not valid.')
289-
if len(self.inputs.keys()) == 1:
290-
self.inputs[list(self.inputs.keys())[0]].setPure()
289+
if len(self.inputs.keys()) == 2:
290+
self.inputs[list(self.inputs.keys())[1]].setPure()
291291

292292

293293
def __str__(self):
@@ -536,6 +536,7 @@ class Pin(object):
536536
Class for storing all information required to represent a input/output pin.
537537
"""
538538
def __init__(self, pinID, info, node):
539+
self.ID = pinID
539540
self.ID = pinID
540541
self.name = info.name
541542
self.info = info

0 commit comments

Comments
 (0)