From 63c5e42f2aa72b3620bf6618884ef5cfb9beb280 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:17:53 +1000 Subject: [PATCH] fix(ui): resetting layer resets position --- .../web/src/features/controlLayers/store/layersReducers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/invokeai/frontend/web/src/features/controlLayers/store/layersReducers.ts b/invokeai/frontend/web/src/features/controlLayers/store/layersReducers.ts index c81083273a..c9ed79f069 100644 --- a/invokeai/frontend/web/src/features/controlLayers/store/layersReducers.ts +++ b/invokeai/frontend/web/src/features/controlLayers/store/layersReducers.ts @@ -94,6 +94,8 @@ export const layersReducers = { layer.bbox = null; layer.bboxNeedsUpdate = false; state.layers.imageCache = null; + layer.x = 0; + layer.y = 0; }, layerDeleted: (state, action: PayloadAction<{ id: string }>) => { const { id } = action.payload;