1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +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

@@ -13,6 +13,7 @@ class TestNode(ComfyNodeABC):
"min": 0, "max": 127, "default": 42,
"tooltip": "My tooltip 😎", "display": "slider"}),
"combo": (IO.COMBO, {"options": ["a", "b", "c"], "tooltip": "This is a combo input"}),
"combo2": (IO.COMBO, {"options": ["a", "b", "c"], "multi_select": True, "tooltip": "This is a combo input"}),
},
"optional": {
"xyz": ("XYZ",),
@@ -29,7 +30,7 @@ class TestNode(ComfyNodeABC):
CATEGORY = "v3 nodes"
def do_thing(self, image: torch.Tensor, some_int: int, combo: str, xyz=None, mask: torch.Tensor=None):
def do_thing(self, image: torch.Tensor, some_int: int, combo: str, combo2: list[str], xyz=None, mask: torch.Tensor=None):
return (some_int, image)