"deploy/git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "8f9dda8608d3e7af24f141b7ed76a030e21a3812"
Commit 36e15f25 authored by comfyanonymous's avatar comfyanonymous
Browse files

Reregister nodes when pressing refresh button.

parent 1b103e0c
......@@ -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) {
......
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