fix(ui): invalidate mask cache when moving layer

This commit is contained in:
psychedelicious 2024-05-04 09:07:24 +10:00 committed by Kent Keirsey
parent 4beccea6e7
commit 2888845f7c

View File

@ -164,6 +164,9 @@ export const controlLayersSlice = createSlice({
layer.x = x;
layer.y = y;
}
if (isRegionalGuidanceLayer(layer)) {
layer.uploadedMaskImage = null;
}
},
layerBboxChanged: (state, action: PayloadAction<{ layerId: string; bbox: IRect | null }>) => {
const { layerId, bbox } = action.payload;