1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Fixed MultiCombo, confirmed VALIDATE_INPUTS, IS_CHANGED works

This commit is contained in:
kosinkadink1@gmail.com
2025-07-09 00:26:15 -05:00
parent 18a7207ca4
commit a86fddcdd4
3 changed files with 11 additions and 2 deletions

View File

@@ -72,6 +72,14 @@ class V3TestNode(io.ComfyNodeV3):
is_output_node=True,
)
@classmethod
def VALIDATE_INPUTS(cls, image: io.Image.Type, some_int: int, combo: io.Combo.Type, combo2: io.MultiCombo.Type, xyz: XYZ.Type=None, mask: io.Mask.Type=None, **kwargs):
if some_int < 0:
raise Exception("some_int must be greater than 0")
if combo == "c":
raise Exception("combo must be a or b")
return True
@classmethod
def execute(cls, image: io.Image.Type, some_int: int, combo: io.Combo.Type, combo2: io.MultiCombo.Type, xyz: XYZ.Type=None, mask: io.Mask.Type=None, **kwargs):
zzz = cls.hidden.prompt