mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Merge branch 'refactor/registerNodes' of https://github.com/ltdrdata/ComfyUI
This commit is contained in:
commit
b06c5259db
@ -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 {
|
|||||||
LiteGraph.registerNodeType(nodeId, node);
|
LiteGraph.registerNodeType(nodeId, node);
|
||||||
node.category = nodeData.category;
|
node.category = nodeData.category;
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.#invokeExtensionsAsync("registerCustomNodes");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user