mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-28 15:50:58 +08:00
Make id properly act like display_name on outputs
This commit is contained in:
parent
e4e90b610b
commit
9cbfb96bf7
@ -208,7 +208,7 @@ class Output(_IO_V3):
|
||||
def __init__(self, id: str=None, display_name: str=None, tooltip: str=None,
|
||||
is_output_list=False):
|
||||
self.id = id
|
||||
self.display_name = display_name
|
||||
self.display_name = display_name if display_name else id
|
||||
self.tooltip = tooltip
|
||||
self.is_output_list = is_output_list
|
||||
|
||||
@ -854,8 +854,10 @@ class MatchType(ComfyTypeIO):
|
||||
})
|
||||
|
||||
class Output(Output):
|
||||
def __init__(self, template: MatchType.Template, id: str=None, display_name: str="MATCHTYPE", tooltip: str=None,
|
||||
def __init__(self, template: MatchType.Template, id: str=None, display_name: str=None, tooltip: str=None,
|
||||
is_output_list=False):
|
||||
if not id and not display_name:
|
||||
display_name = "MATCHTYPE"
|
||||
super().__init__(id, display_name, tooltip, is_output_list)
|
||||
self.template = template
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user