allow muting group node

This commit is contained in:
pythongosssss 2023-12-03 17:04:16 +00:00
parent 496de0891d
commit 44d8abadf0
1 changed files with 2 additions and 1 deletions

View File

@ -1704,7 +1704,8 @@ export class ComfyApp {
const output = {};
// Process nodes in order of execution
for (const outerNode of this.graph.computeExecutionOrder(false)) {
const innerNodes = outerNode.getInnerNodes ? outerNode.getInnerNodes() : [outerNode];
const skipNode = outerNode.mode === 2 || outerNode.mode === 4;
const innerNodes = (!skipNode && outerNode.getInnerNodes) ? outerNode.getInnerNodes() : [outerNode];
for (const node of innerNodes) {
if (node.isVirtualNode) {
continue;