Optional RETURN_NAMES to set the output name

This commit is contained in:
Jairo Correa
2023-03-26 21:40:36 -03:00
parent 48efadeccf
commit 967bfce0f3
2 changed files with 5 additions and 2 deletions

View File

@@ -611,8 +611,10 @@ class ComfyApp {
}
}
for (const output of nodeData["output"]) {
this.addOutput(output, output);
for (const o in nodeData["output"]) {
const output = nodeData["output"][o];
const outputName = nodeData["output_name"][o] || output;
this.addOutput(outputName, output);
}
const s = this.computeSize();