From da65a1dbaf92bab520dadc867b0897ff29d8d287 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 15 Sep 2025 08:35:53 +1000 Subject: [PATCH] Fix opacity not rendered to default nodes Also causes bypassed nodes in light mode to once again render in light pink (again). Not sure when this regression occurred. --- src/scripts/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 6c1114a26..4587256b0 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -649,6 +649,8 @@ export class ComfyApp { const opacity = useSettingStore().get('Comfy.Node.Opacity') if (opacity) adjustments.opacity = opacity + node.bgcolor = adjustColor(bgColor, adjustments) + if (useColorPaletteStore().completedActivePalette.light_theme) { adjustments.lightness = 0.5 @@ -658,8 +660,6 @@ export class ComfyApp { } } - node.bgcolor = adjustColor(bgColor, adjustments) - // @ts-expect-error fixme ts strict error const res = origDrawNode.apply(this, arguments)