mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): canvas bbox number input wonky
It was rounding dimensions when it shouldn't. Closes #5453
This commit is contained in:
parent
4082f25062
commit
b501bd709f
@ -101,13 +101,10 @@ const setBoundingBoxDimensionsReducer = (
|
||||
optimalDimension: number
|
||||
) => {
|
||||
const boundingBoxDimensions = payload;
|
||||
const newDimensions = roundDimensionsToMultiple(
|
||||
{
|
||||
...state.boundingBoxDimensions,
|
||||
...boundingBoxDimensions,
|
||||
},
|
||||
CANVAS_GRID_SIZE_FINE
|
||||
);
|
||||
const newDimensions = {
|
||||
...state.boundingBoxDimensions,
|
||||
...boundingBoxDimensions,
|
||||
};
|
||||
state.boundingBoxDimensions = newDimensions;
|
||||
if (state.boundingBoxScaleMethod === 'auto') {
|
||||
const scaledDimensions = getScaledBoundingBoxDimensions(
|
||||
|
Loading…
Reference in New Issue
Block a user