mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 04:43:30 +08:00
Reregister nodes when pressing refresh button.
This commit is contained in:
parent
25ec26ff9c
commit
a687cfeda8
@ -2020,12 +2020,8 @@ export class ComfyApp {
|
||||
async refreshComboInNodes() {
|
||||
const defs = await api.getNodeDefs();
|
||||
|
||||
for(const nodeId in LiteGraph.registered_node_types) {
|
||||
const node = LiteGraph.registered_node_types[nodeId];
|
||||
const nodeDef = defs[nodeId];
|
||||
if(!nodeDef) continue;
|
||||
|
||||
node.nodeData = nodeDef;
|
||||
for (const nodeId in defs) {
|
||||
this.registerNodeDef(nodeId, defs[nodeId]);
|
||||
}
|
||||
|
||||
for(let nodeNum in this.graph._nodes) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user