From f491b5a77b64e3e67b8785022bf4915916a0e7f9 Mon Sep 17 00:00:00 2001 From: Matthieu Hog Date: Tue, 6 Sep 2022 10:57:29 +0200 Subject: [PATCH] removed duplicated call to findnodes --- bin/meshroom_batch | 4 +++- meshroom/core/graph.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/meshroom_batch b/bin/meshroom_batch index c5363acd52..57843c33f2 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 89faefb51d..2b43a01f0a 100644 --- a/meshroom/core/graph.py +++ b/meshroom/core/graph.py @@ -1315,6 +1315,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)