mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[core] update nodes topological data after nodes status update
evaluate nodes computability requires up-to-date status
This commit is contained in:
parent
5ddf138554
commit
ae716602ab
1 changed files with 6 additions and 6 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue