mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: make bounding box swap also unlock Aspect Ratio
This commit is contained in:
parent
b13a06f650
commit
b5da7faafb
@ -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;
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user