mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-14 13:35:05 +00:00
Fix widgets not getting converted correctly in workflows.
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user