From 47106eeeea65600441da953da5ca8c84922c9bec Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 27 Oct 2022 22:05:40 +1100 Subject: [PATCH] Fixes missing border on brush --- frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx | 4 ++-- frontend/src/features/tabs/Inpainting/components/Cacher.tsx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx b/frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx index 1c383bf605..39b16501ed 100644 --- a/frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx +++ b/frontend/src/features/tabs/Inpainting/InpaintingCanvas.tsx @@ -279,12 +279,12 @@ const InpaintingCanvas = () => { /> )} - - + {shouldShowBoundingBoxFill && ( )} + )} diff --git a/frontend/src/features/tabs/Inpainting/components/Cacher.tsx b/frontend/src/features/tabs/Inpainting/components/Cacher.tsx index 65300ac1d6..086f197623 100644 --- a/frontend/src/features/tabs/Inpainting/components/Cacher.tsx +++ b/frontend/src/features/tabs/Inpainting/components/Cacher.tsx @@ -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;