From 88091a6f9378936be1e182546b29e2dfa8c989df Mon Sep 17 00:00:00 2001 From: duguxy Date: Thu, 20 Aug 2015 19:18:28 +0800 Subject: [PATCH] fix update() of nodes with multiple input --- pyqtgraph/flowchart/Flowchart.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyqtgraph/flowchart/Flowchart.py b/pyqtgraph/flowchart/Flowchart.py index 17e2bde4..b623f5c7 100644 --- a/pyqtgraph/flowchart/Flowchart.py +++ b/pyqtgraph/flowchart/Flowchart.py @@ -381,22 +381,22 @@ class Flowchart(Node): terms = set(startNode.outputs().values()) #print "======= Updating", startNode - #print "Order:", order + # print("Order:", order) for node in order[1:]: - #print "Processing node", node + # print("Processing node", node) + update = False for term in list(node.inputs().values()): - #print " checking terminal", term + # print(" checking terminal", term) deps = list(term.connections().keys()) - update = False for d in deps: if d in terms: - #print " ..input", d, "changed" - update = True + # print(" ..input", d, "changed") + update |= True term.inputChanged(d, process=False) - if update: - #print " processing.." - node.update() - terms |= set(node.outputs().values()) + if update: + # print(" processing..") + node.update() + terms |= set(node.outputs().values()) finally: self.processing = False