Fixes missing border on brush

This commit is contained in:
psychedelicious 2022-10-27 22:05:40 +11:00
parent 07e21acab5
commit 47106eeeea
2 changed files with 4 additions and 2 deletions

View File

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

View File

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