Fix widgets not getting converted correctly in workflows.

This commit is contained in:
comfyanonymous 2023-04-13 10:38:41 -04:00
parent 3f52e7cbb1
commit 501f200d86

View File

@ -949,9 +949,13 @@ class ComfyApp {
widget.value = widget.value.slice(7);
}
}
}
if (node.type == "KSampler" || node.type == "KSamplerAdvanced" || node.type == "PrimitiveNode") {
if (widget.name == "control_after_generate") {
if (widget.value == true) {
if (widget.value === true) {
widget.value = "randomize";
} else if (widget.value === false) {
widget.value = "fixed";
}
}
}