mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 21:42:37 +08:00
hotfix: ExecutionOneOf
- inefficient
This commit is contained in:
parent
d0f1e5d05c
commit
f6555e5f52
@ -53,7 +53,10 @@ def map_node_over_list(obj, input_data_all, func, allow_interrupt=False):
|
||||
if hasattr(obj, "INPUT_IS_LIST"):
|
||||
intput_is_list = obj.INPUT_IS_LIST
|
||||
|
||||
max_len_input = max([len(x) for x in input_data_all.values()])
|
||||
if input_data_all is not None:
|
||||
max_len_input = max([len(x) for x in input_data_all.values()])
|
||||
else:
|
||||
max_len_input = 0
|
||||
|
||||
# get a slice of inputs, repeat last input when list isn't long enough
|
||||
def slice_dict(d, i):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user