1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-04 07:52:46 +08:00

Changed to store resolved prompt in workflow info

This commit is contained in:
pythongosssss
2023-03-03 18:40:50 +00:00
parent 4ef4cf913f
commit e14b79c14e
2 changed files with 8 additions and 7 deletions

View File

@@ -589,9 +589,10 @@ class ComfyApp {
// Store all widget values
if (widgets) {
for (const widget of widgets) {
for (const i in widgets) {
const widget = widgets[i];
if (!widget.options || widget.options.serialize !== false) {
inputs[widget.name] = widget.serializeValue ? widget.serializeValue() : widget.value;
inputs[widget.name] = widget.serializeValue ? widget.serializeValue(n, i) : widget.value;
}
}
}
@@ -619,7 +620,7 @@ class ComfyApp {
} else {
link = node.getInputLink(i);
}
if (link) {
inputs[node.inputs[i].name] = [String(link.origin_id), parseInt(link.origin_slot)];
}