diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 9b0208410..8c68ba723 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -98,6 +98,12 @@ watchEffect(() => { ) }) +watchEffect(() => { + LGraphNode.keepAllLinksOnBypass = settingStore.get( + 'Comfy.Node.BypassAllLinksOnDelete' + ) +}) + watchEffect(() => { nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated') }) diff --git a/src/stores/coreSettings.ts b/src/stores/coreSettings.ts index 7158b2503..f38bd1fe9 100644 --- a/src/stores/coreSettings.ts +++ b/src/stores/coreSettings.ts @@ -476,5 +476,14 @@ export const CORE_SETTINGS: SettingParams[] = [ type: 'boolean', defaultValue: true, versionAdded: '1.3.29' + }, + { + id: 'Comfy.Node.BypassAllLinksOnDelete', + name: 'Keep all links when deleting nodes', + tooltip: + 'When deleting a node, attempt to reconnect all of its input and output links (bypassing the deleted node)', + type: 'boolean', + defaultValue: true, + versionAdded: '1.3.40' } ]