Fix autogrow input removal below min

This commit is contained in:
Austin Mroz
2025-12-09 17:06:47 -08:00
parent b8913e9d8d
commit d4e42a0db0

View File

@@ -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 (