Add workaround for delay in link connection (#1873)

New input sockets have no pos, and require a render frame to occur before links can be set to the correct location.
This commit is contained in:
filtered 2025-05-27 07:27:45 +10:00 committed by GitHub
parent 7dea42433b
commit 85a6fb75b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,6 +153,7 @@ app.registerExtension({
app.canvas.graph.add(new_node, false);
node_info_copy(this, new_node, true);
app.canvas.graph.remove(this);
requestAnimationFrame(() => app.canvas.setDirty(true, true))
},
});
});