Commit d761eaa4 authored by pythongosssss's avatar pythongosssss
Browse files

if the output type is an array, use combo

parent b9b178b8
...@@ -1306,7 +1306,8 @@ export class ComfyApp { ...@@ -1306,7 +1306,8 @@ export class ComfyApp {
} }
for (const o in nodeData["output"]) { for (const o in nodeData["output"]) {
const output = nodeData["output"][o]; let output = nodeData["output"][o];
if(output instanceof Array) output = "COMBO";
const outputName = nodeData["output_name"][o] || output; const outputName = nodeData["output_name"][o] || output;
const outputShape = nodeData["output_is_list"][o] ? LiteGraph.GRID_SHAPE : LiteGraph.CIRCLE_SHAPE ; const outputShape = nodeData["output_is_list"][o] ? LiteGraph.GRID_SHAPE : LiteGraph.CIRCLE_SHAPE ;
this.addOutput(outputName, output, { shape: outputShape }); this.addOutput(outputName, output, { shape: outputShape });
......
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