[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
return
# Graph topology has changed
if self.dirtyTopology:
# update nodes topological data cache
self.updateNodesTopologicalData()
self.dirtyTopology = False
self.updateInternals()
if os.path.exists(self._cacheDir):
self.updateStatusFromCache()
for node in self.nodes:
node.dirty = False
# Graph topology has changed
if self.dirtyTopology:
# update nodes topological data cache
self.updateNodesTopologicalData()
self.dirtyTopology = False
self.updated.emit()
def markNodesDirty(self, fromNode):