mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-09 23:26:59 +02:00
[core] graph: use new dependenciesOnly option on graph operations
Input attribute to input attribute connection is not a real dependency between the nodes.
This commit is contained in:
parent
98b5039f8a
commit
d291fcc39d
4 changed files with 60 additions and 43 deletions
|
@ -147,7 +147,7 @@ class TaskManager(BaseObject):
|
|||
self.removeNode(node, displayList=False, processList=True)
|
||||
|
||||
# Remove output nodes from display and computing lists
|
||||
outputNodes = node.getOutputNodes(recursive=True)
|
||||
outputNodes = node.getOutputNodes(recursive=True, dependenciesOnly=True)
|
||||
for n in outputNodes:
|
||||
if n.getGlobalStatus() in (Status.ERROR, Status.SUBMITTED):
|
||||
n.upgradeStatusTo(Status.NONE)
|
||||
|
@ -184,7 +184,7 @@ class TaskManager(BaseObject):
|
|||
else:
|
||||
# Check dependencies of toNodes
|
||||
if not toNodes:
|
||||
toNodes = graph.getLeafNodes()
|
||||
toNodes = graph.getLeafNodes(dependenciesOnly=True)
|
||||
toNodes = list(toNodes)
|
||||
allReady = self.checkNodesDependencies(graph, toNodes, "COMPUTATION")
|
||||
|
||||
|
@ -402,7 +402,7 @@ class TaskManager(BaseObject):
|
|||
|
||||
# Check dependencies of toNodes
|
||||
if not toNodes:
|
||||
toNodes = graph.getLeafNodes()
|
||||
toNodes = graph.getLeafNodes(dependenciesOnly=True)
|
||||
toNodes = list(toNodes)
|
||||
allReady = self.checkNodesDependencies(graph, toNodes, "SUBMITTING")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue