From 307885f505c945c54d4cf6b96ea5f4824679fbd1 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 26 Aug 2024 08:58:16 +1000 Subject: [PATCH] fix(ui): color picker resets brush opacity --- .../frontend/web/src/features/controlLayers/konva/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/events.ts b/invokeai/frontend/web/src/features/controlLayers/konva/events.ts index af64a2d777..4bab491f06 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/events.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/events.ts @@ -199,7 +199,7 @@ export const setStageEventHandlers = (manager: CanvasManager): (() => void) => { manager.stateApi.$colorUnderCursor.set(color); } if (color) { - manager.stateApi.setFill({ ...color, a: 1 }); + manager.stateApi.setFill({ ...toolState.fill, ...color }); } manager.preview.tool.render(); } else {