mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 01:52:59 +08:00
Merge branch 'combo-output-fix' into v3-match-type
This commit is contained in:
commit
53c4aab268
@ -23,6 +23,13 @@ def validate_node_input(
|
|||||||
if not received_type != input_type:
|
if not received_type != input_type:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# If input_type is a Combo, frontend permits a Combo output to be connected,
|
||||||
|
# but it is defined as a tuple of values with V3 schema.
|
||||||
|
# This probably should be dealt with sending one thing to the frontend and another to the backend,
|
||||||
|
# but this will do for now.
|
||||||
|
if input_type == "COMBO" and isinstance(received_type, tuple):
|
||||||
|
return True
|
||||||
|
|
||||||
# Not equal, and not strings
|
# Not equal, and not strings
|
||||||
if not isinstance(received_type, str) or not isinstance(input_type, str):
|
if not isinstance(received_type, str) or not isinstance(input_type, str):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user