mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-29 17:26:34 +00:00
Fix widgets not getting converted correctly in workflows.
This commit is contained in:
parent
3f52e7cbb1
commit
501f200d86
@ -949,9 +949,13 @@ class ComfyApp {
|
|||||||
widget.value = widget.value.slice(7);
|
widget.value = widget.value.slice(7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (node.type == "KSampler" || node.type == "KSamplerAdvanced" || node.type == "PrimitiveNode") {
|
||||||
if (widget.name == "control_after_generate") {
|
if (widget.name == "control_after_generate") {
|
||||||
if (widget.value == true) {
|
if (widget.value === true) {
|
||||||
widget.value = "randomize";
|
widget.value = "randomize";
|
||||||
|
} else if (widget.value === false) {
|
||||||
|
widget.value = "fixed";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user