feat: Recognize missing nodes used within the group node and add functionality.

This commit is contained in:
Dr.Lt.Data 2023-12-08 10:18:05 +09:00
parent 208d26bebe
commit fe8de94ed7
2 changed files with 13 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import http.client
import re
import signal
version = "V1.7.2"
version = "V1.8"
print(f"### Loading: ComfyUI-Manager ({version})")

View File

@ -177,9 +177,20 @@ export class CustomNodesInstaller extends ComfyDialog {
}
const missing_nodes = new Set();
const nodes = app.graph.serialize().nodes;
const workflow = app.graph.serialize();
const group_nodes = workflow.extra && workflow.extra.groupNodes ? workflow.extra.groupNodes : [];
let nodes = workflow.nodes;
for (let i in group_nodes) {
let group_node = group_nodes[i];
nodes = nodes.concat(group_node.nodes);
}
for (let i in nodes) {
const node_type = nodes[i].type;
if(node_type.startsWith('workflow/'))
continue;
if (!registered_nodes.has(node_type)) {
const url = name_to_url[node_type.trim()];
if(url)