mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-08 22:05:20 -05:00
fix(ui): resetting layer resets position
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user