From 128f0f7fc3a0e5add5025470bfd2de2aba975257 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 15 Sep 2025 08:31:04 +1000 Subject: [PATCH] Revert "Fix bypassed nodes" This reverts commit 6121634c099e0f64929de99b109ae62bb4bc8d25. --- src/scripts/app.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 7678d84c1..b64e834ae 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -636,12 +636,12 @@ export class ComfyApp { this.editor_alpha = 0.4 } - let bgColor: string | undefined + let bgColor: string if (node.mode === LGraphEventMode.BYPASS) { bgColor = app.bypassBgColor this.editor_alpha = 0.2 } else { - bgColor = old_bgcolor + bgColor = old_bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR } const adjustments: ColorAdjustOptions = {} @@ -658,8 +658,8 @@ export class ComfyApp { } } - if (bgColor) { - node.bgcolor = adjustColor(bgColor, adjustments) + if (old_bgcolor) { + node.bgcolor = adjustColor(old_bgcolor, adjustments) } // @ts-expect-error fixme ts strict error