"...git@developer.sourcefind.cn:modelzoo/solov2-pytorch.git" did not exist on "bc75766ceab3d461f170f98fe6d7bb26fbbdced4"
Commit b06c5259 authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'refactor/registerNodes' of https://github.com/ltdrdata/ComfyUI

parents 03da8a34 8e8d6070
...@@ -1010,6 +1010,11 @@ export class ComfyApp { ...@@ -1010,6 +1010,11 @@ export class ComfyApp {
const app = this; const app = this;
// Load node definitions from the backend // Load node definitions from the backend
const defs = await api.getNodeDefs(); const defs = await api.getNodeDefs();
await this.registerNodesFromDefs(defs);
await this.#invokeExtensionsAsync("registerCustomNodes");
}
async registerNodesFromDefs(defs) {
await this.#invokeExtensionsAsync("addCustomNodeDefs", defs); await this.#invokeExtensionsAsync("addCustomNodeDefs", defs);
// Generate list of known widgets // Generate list of known widgets
...@@ -1082,8 +1087,6 @@ export class ComfyApp { ...@@ -1082,8 +1087,6 @@ export class ComfyApp {
LiteGraph.registerNodeType(nodeId, node); LiteGraph.registerNodeType(nodeId, node);
node.category = nodeData.category; node.category = nodeData.category;
} }
await this.#invokeExtensionsAsync("registerCustomNodes");
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment