mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-01 23:15:00 -05:00
fix(ui): aspect ratio preview not updating when changing bbox on canvas
This commit is contained in:
@@ -687,6 +687,13 @@ export const canvasSlice = createSlice({
|
||||
},
|
||||
bboxChanged: (state, action: PayloadAction<IRect>) => {
|
||||
state.bbox.rect = action.payload;
|
||||
|
||||
if (!state.bbox.aspectRatio.isLocked) {
|
||||
state.bbox.aspectRatio.value = state.bbox.rect.width / state.bbox.rect.height;
|
||||
state.bbox.aspectRatio.id = 'Free';
|
||||
state.bbox.aspectRatio.isLocked = false;
|
||||
}
|
||||
|
||||
syncScaledSize(state);
|
||||
},
|
||||
bboxWidthChanged: (
|
||||
|
||||
Reference in New Issue
Block a user