mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-11 05:52:33 +08:00
Enable the use of variant types in node out/input
This commit is contained in:
parent
9ba440995a
commit
7e4bc4451b
@ -425,7 +425,7 @@ def validate_inputs(prompt, item, validated):
|
|||||||
o_id = val[0]
|
o_id = val[0]
|
||||||
o_class_type = prompt[o_id]['class_type']
|
o_class_type = prompt[o_id]['class_type']
|
||||||
r = nodes.NODE_CLASS_MAPPINGS[o_class_type].RETURN_TYPES
|
r = nodes.NODE_CLASS_MAPPINGS[o_class_type].RETURN_TYPES
|
||||||
if r[val[1]] != type_input:
|
if type_input != "*" and r[val[1]] != "*" and r[val[1]] != type_input:
|
||||||
received_type = r[val[1]]
|
received_type = r[val[1]]
|
||||||
details = f"{x}, {received_type} != {type_input}"
|
details = f"{x}, {received_type} != {type_input}"
|
||||||
error = {
|
error = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user