mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 02:23:06 +08:00
Change MatchType to have template be the first and only required param; output id's do nothing right now, so no need
This commit is contained in:
parent
a25d736437
commit
02159fc154
@ -1033,7 +1033,7 @@ class MatchType(ComfyTypeIO):
|
|||||||
})
|
})
|
||||||
|
|
||||||
class Output(Output):
|
class Output(Output):
|
||||||
def __init__(self, id: str, template: MatchType.Template, display_name: str=None, tooltip: str=None,
|
def __init__(self, template: MatchType.Template, id: str=None, display_name: str=None, tooltip: str=None,
|
||||||
is_output_list=False):
|
is_output_list=False):
|
||||||
super().__init__(id, display_name, tooltip, is_output_list)
|
super().__init__(id, display_name, tooltip, is_output_list)
|
||||||
self.template = template
|
self.template = template
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class SwitchNode(io.ComfyNode):
|
|||||||
io.MatchType.Input("on_true", template=template, lazy=True),
|
io.MatchType.Input("on_true", template=template, lazy=True),
|
||||||
],
|
],
|
||||||
outputs=[
|
outputs=[
|
||||||
io.MatchType.Output("output", template=template, display_name="output"),
|
io.MatchType.Output(template=template, display_name="output"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user