Skip to content

Commit b378502

Browse files
committed
[bin] batch: avoid to call all InitNodes if not asked
1 parent 59948b2 commit b378502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/meshroom_batch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ with meshroom.core.graph.GraphModification(graph):
196196
# feed inputs (recursive and non-recursive paths) to corresponding init nodes
197197
for initNode in initNodes:
198198
nodeName = initNode.getName()
199+
if nodeName not in mapInput | mapInputRecursive and \
200+
"" not in mapInput | mapInputRecursive:
201+
continue
202+
199203
# Retrieve input per node and inputs for all init node types
200204
input = mapInput.get(nodeName, []) + mapInput.get("", [])
201205
# Retrieve recursive inputs

0 commit comments

Comments
 (0)