Revert "Fix bypassed nodes"

This reverts commit 6121634c09.
This commit is contained in:
filtered
2025-09-15 08:31:04 +10:00
parent b952b2ef09
commit 128f0f7fc3

View File

@@ -636,12 +636,12 @@ export class ComfyApp {
this.editor_alpha = 0.4 this.editor_alpha = 0.4
} }
let bgColor: string | undefined let bgColor: string
if (node.mode === LGraphEventMode.BYPASS) { if (node.mode === LGraphEventMode.BYPASS) {
bgColor = app.bypassBgColor bgColor = app.bypassBgColor
this.editor_alpha = 0.2 this.editor_alpha = 0.2
} else { } else {
bgColor = old_bgcolor bgColor = old_bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR
} }
const adjustments: ColorAdjustOptions = {} const adjustments: ColorAdjustOptions = {}
@@ -658,8 +658,8 @@ export class ComfyApp {
} }
} }
if (bgColor) { if (old_bgcolor) {
node.bgcolor = adjustColor(bgColor, adjustments) node.bgcolor = adjustColor(old_bgcolor, adjustments)
} }
// @ts-expect-error fixme ts strict error // @ts-expect-error fixme ts strict error