mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 18:43:05 +08:00
Make curr_prefix creation happen in Autogrow, move curr_prefix in DynamicCombo to only be created if input exists in live_inputs
This commit is contained in:
parent
34c94fdcf2
commit
15c157e174
@ -923,6 +923,7 @@ class Autogrow(ComfyTypeI):
|
||||
self.input.validate()
|
||||
|
||||
def add_to_dict_live_inputs(self, d: dict[str], live_inputs: dict[str], curr_prefix=''):
|
||||
curr_prefix = f"{curr_prefix}{self.id}."
|
||||
real_inputs = []
|
||||
for name, input in self.cached_inputs.items():
|
||||
if name in live_inputs:
|
||||
@ -1013,8 +1014,8 @@ class DynamicCombo(ComfyTypeI):
|
||||
|
||||
def add_to_dict_live_inputs(self, d: dict[str], live_inputs: dict[str], curr_prefix=''):
|
||||
# check if dynamic input's id is in live_inputs
|
||||
curr_prefix = f"{curr_prefix}{self.id}."
|
||||
if self.id in live_inputs:
|
||||
curr_prefix = f"{curr_prefix}{self.id}."
|
||||
key = live_inputs[self.id]
|
||||
selected_option = None
|
||||
for option in self.options:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user