mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-18 02:23:06 +08:00
Add get_dynamic function, not yet filled out correctly
This commit is contained in:
parent
e3ba819d2c
commit
59381ecbd2
@ -890,6 +890,9 @@ class DynamicCombo(ComfyTypeI):
|
|||||||
super().__init__(id)
|
super().__init__(id)
|
||||||
self.options = options
|
self.options = options
|
||||||
|
|
||||||
|
def get_dynamic(self) -> list[Input]:
|
||||||
|
return [self]
|
||||||
|
|
||||||
def as_dict(self):
|
def as_dict(self):
|
||||||
return super().as_dict() | prune_dict({
|
return super().as_dict() | prune_dict({
|
||||||
"options": [o.as_dict() for o in self.options],
|
"options": [o.as_dict() for o in self.options],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user