[core] update nodes topological data after nodes status update

evaluate nodes computability requires up-to-date status
This commit is contained in:
Yann Lanthony 2018-07-19 16:08:00 +02:00
parent 5ddf138554
commit ae716602ab

View file

@ -897,18 +897,18 @@ class Graph(BaseObject):
self._updateRequested = True self._updateRequested = True
return return
# Graph topology has changed
if self.dirtyTopology:
# update nodes topological data cache
self.updateNodesTopologicalData()
self.dirtyTopology = False
self.updateInternals() self.updateInternals()
if os.path.exists(self._cacheDir): if os.path.exists(self._cacheDir):
self.updateStatusFromCache() self.updateStatusFromCache()
for node in self.nodes: for node in self.nodes:
node.dirty = False node.dirty = False
# Graph topology has changed
if self.dirtyTopology:
# update nodes topological data cache
self.updateNodesTopologicalData()
self.dirtyTopology = False
self.updated.emit() self.updated.emit()
def markNodesDirty(self, fromNode): def markNodesDirty(self, fromNode):