mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): resetting layer resets position
This commit is contained in:
parent
bd16dc4479
commit
63c5e42f2a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user