mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): color picker resets brush opacity
This commit is contained in:
parent
4b49c1dd6b
commit
307885f505
@ -199,7 +199,7 @@ export const setStageEventHandlers = (manager: CanvasManager): (() => void) => {
|
|||||||
manager.stateApi.$colorUnderCursor.set(color);
|
manager.stateApi.$colorUnderCursor.set(color);
|
||||||
}
|
}
|
||||||
if (color) {
|
if (color) {
|
||||||
manager.stateApi.setFill({ ...color, a: 1 });
|
manager.stateApi.setFill({ ...toolState.fill, ...color });
|
||||||
}
|
}
|
||||||
manager.preview.tool.render();
|
manager.preview.tool.render();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user