Reregister nodes when pressing refresh button.
This commit is contained in:
parent
1b103e0cb2
commit
36e15f2507
|
@ -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…
Reference in New Issue