Commit 501f200d authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix widgets not getting converted correctly in workflows.

parent 3f52e7cb
...@@ -949,9 +949,13 @@ class ComfyApp { ...@@ -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";
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment