Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

allows connect primitive node to reroute if primitive node has type (#751)

Dr.Lt.Data8e14c46a381f
diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js
index 4fe0a6013..8955fca87 100644
--- a/web/extensions/core/widgetInputs.js
+++ b/web/extensions/core/widgetInputs.js
@@ -240,6 +240,7 @@ app.registerExtension({
// No widget, we cant connect
if (!input.widget) {
+ if (this.outputs[0]?.type != '*' && target_node.type == "Reroute") return true;
if (!(input.type in ComfyWidgets)) return false;
}