mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-25 22:00:19 +08:00
add support for DynamicCombo
This commit is contained in:
parent
1cd88a03dd
commit
759fe56500
@ -1250,7 +1250,13 @@ class PriceBadgeDepends:
|
|||||||
# Build lookup: widget_id -> io_type
|
# Build lookup: widget_id -> io_type
|
||||||
input_types: dict[str, str] = {}
|
input_types: dict[str, str] = {}
|
||||||
for inp in schema_inputs:
|
for inp in schema_inputs:
|
||||||
input_types[inp.id] = inp.get_io_type()
|
all_inputs = inp.get_all()
|
||||||
|
input_types[inp.id] = inp.get_io_type() # First input is always the parent itself
|
||||||
|
for nested_inp in all_inputs[1:]:
|
||||||
|
# For DynamicCombo/DynamicSlot, nested inputs are prefixed with parent ID
|
||||||
|
# to match frontend naming convention (e.g., "should_texture.enable_pbr")
|
||||||
|
prefixed_id = f"{inp.id}.{nested_inp.id}"
|
||||||
|
input_types[prefixed_id] = nested_inp.get_io_type()
|
||||||
|
|
||||||
# Enrich widgets with type information, raising error for unknown widgets
|
# Enrich widgets with type information, raising error for unknown widgets
|
||||||
widgets_data: list[dict[str, str]] = []
|
widgets_data: list[dict[str, str]] = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user