Fixes missing border on brush

This commit is contained in:
psychedelicious 2022-10-27 22:05:40 +11:00
parent 8d8f93fd00
commit 9406b95518
2 changed files with 4 additions and 2 deletions

View File

@ -279,12 +279,12 @@ const InpaintingCanvas = () => {
/>
)}
</Layer>
<Layer name={'preview-layer'}>
<InpaintingCanvasBrushPreviewOutline />
<Layer>
{shouldShowBoundingBoxFill && (
<InpaintingBoundingBoxPreviewOverlay />
)}
<InpaintingBoundingBoxPreview />
<InpaintingCanvasBrushPreviewOutline />
</Layer>
</>
)}

View File

@ -26,6 +26,7 @@ const Cacher = () => {
shouldShowCheckboardTransparency,
imageToInpaint,
shouldShowBrush,
shouldShowBoundingBoxFill,
} = useAppSelector((state: RootState) => state.inpainting);
useLayoutEffect(() => {
@ -50,6 +51,7 @@ const Cacher = () => {
shouldShowCheckboardTransparency,
imageToInpaint,
shouldShowBrush,
shouldShowBoundingBoxFill,
]);
return null;