Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Castan <fabcastan@gmail.com>2022-09-07 21:21:30 +0300
committerGitHub <noreply@github.com>2022-09-07 21:21:30 +0300
commit267aff5a0947a657fe8013c882266eb4f56f259e (patch)
treea00ff56b48c76632678615637b79c9dcd8726cee
parent5ad4c82f3914ca63141fd98c412b491c5cf86fb5 (diff)
parentf491b5a77b64e3e67b8785022bf4915916a0e7f9 (diff)
Merge pull request #1767 from alicevision/bugfix-tonode-submit
removed duplicated call to findnodes
-rwxr-xr-xbin/meshroom_batch4
-rw-r--r--meshroom/core/graph.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/meshroom_batch b/bin/meshroom_batch
index c5363acd..57843c33 100755
--- a/bin/meshroom_batch
+++ b/bin/meshroom_batch
@@ -193,8 +193,10 @@ if args.submit:
if not args.save:
raise ValueError('Need to save the project to file to submit on renderfarm.')
# submit on renderfarm
- meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)
+ meshroom.core.graph.submit(args.save, args.submitter, toNode=args.toNode)
elif args.compute:
+ # find end nodes (None will compute all graph)
+ toNodes = graph.findNodes(args.toNode) if args.toNode else None
# start computation
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
diff --git a/meshroom/core/graph.py b/meshroom/core/graph.py
index 817af336..186ddaaa 100644
--- a/meshroom/core/graph.py
+++ b/meshroom/core/graph.py
@@ -1356,6 +1356,6 @@ def submit(graphFile, submitter, toNode=None):
Submit the given graph via the given submitter.
"""
graph = loadGraph(graphFile)
- toNodes = graph.findNodes([toNode]) if toNode else None
+ toNodes = graph.findNodes(toNode) if toNode else None
submitGraph(graph, submitter, toNodes)