Fix
This commit is contained in:
Submodule litegraph updated: 6e4c8301cd...42adb8dba1
@@ -39,9 +39,12 @@ export function isActiveBackendNode(node: LGraphNode, tag: string | null = null)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Make sure this node is not contained in an inactive subgraph, even if the
|
// Make sure this node is not contained in an inactive subgraph, even if the
|
||||||
// node itself is active
|
// node itself is considered active
|
||||||
if (node.is(Subgraph) && !Array.from(node.iterateParentNodes()).every(n => isActiveNode(n, tag)))
|
if (node.graph._is_subgraph) {
|
||||||
return false;
|
const isInsideDisabledSubgraph = Array.from(node.iterateParentSubgraphNodes()).some(n => !isActiveNode(n, tag))
|
||||||
|
if (isInsideDisabledSubgraph)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user