mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-15 05:57:57 +00:00
Merge branch 'comfyanonymous:master' into socketrework
This commit is contained in:
@@ -406,10 +406,12 @@ function graphToPrompt() {
|
||||
}
|
||||
|
||||
for (let y in n.widgets) {
|
||||
if (n.widgets[y].dynamic_prompt && n.widgets[y].dynamic_prompt === true) {
|
||||
input_[n.widgets[y].name] = n.widgets[y].value.replace("\\{", "{").replace("\\}", "}");
|
||||
} else {
|
||||
input_[n.widgets[y].name] = n.widgets[y].value;
|
||||
if (!Object.hasOwn(n.widgets[y], 'to_randomize')) { //don't include "Random seed after every gen" in prompt.
|
||||
if (n.widgets[y].dynamic_prompt && n.widgets[y].dynamic_prompt === true) {
|
||||
input_[n.widgets[y].name] = n.widgets[y].value.replace("\\{", "{").replace("\\}", "}");
|
||||
} else {
|
||||
input_[n.widgets[y].name] = n.widgets[y].value;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (let y in n.inputs) {
|
||||
|
Reference in New Issue
Block a user