mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-30 00:30:52 +08:00
Enable Custom Combo node as stable frontend now supports it
This commit is contained in:
parent
0d006f8e98
commit
e4e90b610b
@ -131,6 +131,9 @@ class CustomComboNode(io.ComfyNode):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def validate_inputs(cls, choice: io.Combo.Type) -> bool:
|
def validate_inputs(cls, choice: io.Combo.Type) -> bool:
|
||||||
|
# NOTE: DO NOT DO THIS unless you want to skip validation entirely on the node's inputs.
|
||||||
|
# I am doing that here because the widgets (besides the combo dropdown) on this node are fully frontend defined.
|
||||||
|
# I need to skip checking that the chosen combo option is in the options list, since those are defined by the user.
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -288,8 +291,8 @@ class LogicExtension(ComfyExtension):
|
|||||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||||
return [
|
return [
|
||||||
SwitchNode,
|
SwitchNode,
|
||||||
|
CustomComboNode,
|
||||||
# SoftSwitchNode,
|
# SoftSwitchNode,
|
||||||
# CustomComboNode,
|
|
||||||
# ConvertStringToComboNode,
|
# ConvertStringToComboNode,
|
||||||
# DCTestNode,
|
# DCTestNode,
|
||||||
# AutogrowNamesTestNode,
|
# AutogrowNamesTestNode,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user