From d4e42a0db0564265a4b73d66dd5fdcce7d617381 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Tue, 9 Dec 2025 17:06:47 -0800 Subject: [PATCH] Fix autogrow input removal below min --- src/core/graph/widgets/dynamicWidgets.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/graph/widgets/dynamicWidgets.ts b/src/core/graph/widgets/dynamicWidgets.ts index ac57248e8..5e95be172 100644 --- a/src/core/graph/widgets/dynamicWidgets.ts +++ b/src/core/graph/widgets/dynamicWidgets.ts @@ -481,6 +481,7 @@ function autogrowInputDisconnected(index: number, node: AutogrowNode) { lastInput.link = null } app.canvas?.setDirty(true, true) + if (groupInputs.length / stride <= min) return //if all second to last ordinals disconnected, consider for removal const penultimateInputs = groupInputs.slice(-stride * 2) if (