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.
This commit is contained in:
filtered
2025-09-15 08:35:53 +10:00
parent 5175014a1b
commit da65a1dbaf

View File

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