mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 13:32:36 +08:00
Handling the workflow execution of a node composed solely of optional inputs
This commit is contained in:
parent
3856763253
commit
c21caf3210
@ -53,7 +53,7 @@ def map_node_over_list(obj, input_data_all, func, allow_interrupt=False):
|
|||||||
if hasattr(obj, "INPUT_IS_LIST"):
|
if hasattr(obj, "INPUT_IS_LIST"):
|
||||||
intput_is_list = obj.INPUT_IS_LIST
|
intput_is_list = obj.INPUT_IS_LIST
|
||||||
|
|
||||||
if input_data_all is not None:
|
if input_data_all is not None and len(input_data_all) > 0:
|
||||||
max_len_input = max([len(x) for x in input_data_all.values()])
|
max_len_input = max([len(x) for x in input_data_all.values()])
|
||||||
else:
|
else:
|
||||||
max_len_input = 0
|
max_len_input = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user