mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes bug with clear mask and history
This commit is contained in:
parent
9568ac66e0
commit
c7864f8a6d
@ -122,7 +122,7 @@ export const canvasSlice = createSlice({
|
|||||||
state.brushSize = action.payload;
|
state.brushSize = action.payload;
|
||||||
},
|
},
|
||||||
clearMask: (state) => {
|
clearMask: (state) => {
|
||||||
state.pastLayerStates.push(state.layerState);
|
state.pastLayerStates.push({ ...state.layerState });
|
||||||
state.layerState.objects = state.layerState.objects.filter(
|
state.layerState.objects = state.layerState.objects.filter(
|
||||||
(obj) => !isCanvasMaskLine(obj)
|
(obj) => !isCanvasMaskLine(obj)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user