From 28434e7165e99ff9169c0b1131546b3ccab23f36 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Tue, 6 May 2025 19:10:35 +1000 Subject: [PATCH] Fix node with any widgets bypasses link validation (#1016) - Followup on #891 --- src/canvas/LinkConnector.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/canvas/LinkConnector.ts b/src/canvas/LinkConnector.ts index fb7b97d80..94c42a78e 100644 --- a/src/canvas/LinkConnector.ts +++ b/src/canvas/LinkConnector.ts @@ -575,13 +575,6 @@ export class LinkConnector { return node.outputs.some(output => this.renderLinks.some(link => link.canConnectToOutput(node, output))) } - // If the node has widgets, some of them might be able to be converted to - // input slots on drop. The logic is handled in - // https://github.com/Comfy-Org/ComfyUI_frontend/blob/4d35d937cfec5dd802fc1b24916883293f3cbb9e/src/extensions/core/widgetInputs.ts#L670-L695 - if (node.widgets?.length) { - return true - } - return node.inputs.some(input => this.renderLinks.some(link => link.canConnectToInput(node, input))) }