mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix scaled bbox sliders
Removed logic related to aspect ratio from the components. When the main bbox changes, if the scale method is auto, the reducers will handle the scaled bbox size appropriately. Somehow linking up the manual mode to the aspect ratio is tricky, and instead of adding complexity for a rarely-used mode, I'm leaving manual mode as fully manual.
This commit is contained in:
committed by
Kent Keirsey
parent
6c05818887
commit
31035b3e63
@ -597,9 +597,12 @@ export const canvasSlice = createSlice({
|
||||
},
|
||||
setScaledBoundingBoxDimensions: (
|
||||
state,
|
||||
action: PayloadAction<Dimensions>
|
||||
action: PayloadAction<Partial<Dimensions>>
|
||||
) => {
|
||||
state.scaledBoundingBoxDimensions = action.payload;
|
||||
state.scaledBoundingBoxDimensions = {
|
||||
...state.scaledBoundingBoxDimensions,
|
||||
...action.payload,
|
||||
};
|
||||
},
|
||||
setBoundingBoxDimensions: {
|
||||
reducer: (
|
||||
|
Reference in New Issue
Block a user