mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 22:24:23 +08:00
feat: Recognize missing nodes used within the group node and add functionality.
This commit is contained in:
parent
208d26bebe
commit
fe8de94ed7
@ -17,7 +17,7 @@ import http.client
|
||||
import re
|
||||
import signal
|
||||
|
||||
version = "V1.7.2"
|
||||
version = "V1.8"
|
||||
print(f"### Loading: ComfyUI-Manager ({version})")
|
||||
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user