ui: make bounding box swap also unlock Aspect Ratio

This commit is contained in:
blessedcoolant 2023-08-30 09:06:38 +12:00
parent b13a06f650
commit b5da7faafb

View File

@ -5,6 +5,7 @@ import { configChanged } from 'features/system/store/configSlice';
import { clamp } from 'lodash-es';
import { ImageDTO } from 'services/api/types';
import { flipBoundingBoxAxes } from 'features/canvas/store/canvasSlice';
import { mappedAspectRatios } from '../components/Parameters/Core/ParamAspectRatio';
import { clipSkipMap } from '../types/constants';
import {
@ -312,6 +313,9 @@ export const generationSlice = createSlice({
state.clipSkip = 0;
}
});
builder.addCase(flipBoundingBoxAxes, (state) => {
state.aspectRatio = null;
});
},
});