Mask Brush Preview now always at 0.5 opacity

The new mask is only visible properly at max opacity but at max opacity the brush preview becomes fully opaque blocking the view. So the mask brush preview no remains at 0.5 no matter what the Brush opacity is.
This commit is contained in:
blessedcoolant 2022-11-12 08:09:35 +13:00
parent 5410d42da0
commit 775f032c56

View File

@ -30,7 +30,7 @@ const canvasBrushPreviewSelector = createSelector(
height,
radius: tool === 'brush' ? brushSize / 2 : eraserSize / 2,
brushColorString: rgbaColorToString(
layer === 'mask' ? maskColor : brushColor
layer === 'mask' ? { ...maskColor, a: 0.5 } : brushColor
),
tool,
shouldShowBrush,