removed duplicated call to findnodes

This commit is contained in:
Matthieu Hog 2022-09-06 10:57:29 +02:00
parent aa1edf8d7b
commit f491b5a77b
2 changed files with 4 additions and 2 deletions

View file

@ -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)

View file

@ -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)