Merge T2IAdapterLoader and ControlNetLoader.

Workflows will be auto updated.
This commit is contained in:
comfyanonymous
2023-03-17 18:17:59 -04:00
parent e1a9e26968
commit 2e73367f45
6 changed files with 14 additions and 44 deletions

View File

@@ -614,6 +614,12 @@ class ComfyApp {
if (!graphData) {
graphData = defaultGraph;
}
// Patch T2IAdapterLoader to ControlNetLoader since they are the same node now
for (let n of graphData.nodes) {
if (n.type == "T2IAdapterLoader") n.type = "ControlNetLoader";
}
this.graph.configure(graphData);
for (const node of this.graph._nodes) {