diff --git a/litegraph b/litegraph index 6e4c830..42adb8d 160000 --- a/litegraph +++ b/litegraph @@ -1 +1 @@ -Subproject commit 6e4c8301cd53fb33ded2f3fd7bd8c98e73d45ee8 +Subproject commit 42adb8dba1631da0a743486f4d8eee9748ce70c8 diff --git a/src/lib/components/ComfyPromptSerializer.ts b/src/lib/components/ComfyPromptSerializer.ts index 792724c..1f88a33 100644 --- a/src/lib/components/ComfyPromptSerializer.ts +++ b/src/lib/components/ComfyPromptSerializer.ts @@ -39,9 +39,12 @@ export function isActiveBackendNode(node: LGraphNode, tag: string | null = null) return false; // Make sure this node is not contained in an inactive subgraph, even if the - // node itself is active - if (node.is(Subgraph) && !Array.from(node.iterateParentNodes()).every(n => isActiveNode(n, tag))) - return false; + // node itself is considered active + if (node.graph._is_subgraph) { + const isInsideDisabledSubgraph = Array.from(node.iterateParentSubgraphNodes()).some(n => !isActiveNode(n, tag)) + if (isInsideDisabledSubgraph) + return false; + } return true; }