mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): scaled bbox size synced with optimal dimension
This addresses a case when the user is staging and changes the selected model.
This commit is contained in:
committed by
Kent Keirsey
parent
f3f88dba47
commit
21048c53c2
@@ -754,6 +754,10 @@ export const canvasSlice = createSlice({
|
||||
// and is only called when we are not staging.
|
||||
const { optimalDimension } = action.payload;
|
||||
state.bbox.optimalDimension = optimalDimension;
|
||||
|
||||
// But! We do want to update the _scaled_ size. This handles the case where the user changes the base model type
|
||||
// during staging. Though the generation bbox must be unchanged, the scaled bbox should adapt to the model.
|
||||
syncScaledSize(state);
|
||||
},
|
||||
bboxSyncedToOptimalDimension: (state) => {
|
||||
const { optimalDimension } = state.bbox;
|
||||
|
||||
Reference in New Issue
Block a user