mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Set scaled steps to be at 64 to be in sync with the rest of the canvas
This commit is contained in:
parent
86185f2fe3
commit
9caa2a2043
@ -41,7 +41,7 @@ const ParamScaledHeight = () => {
|
|||||||
const newHeight = Math.floor(v);
|
const newHeight = Math.floor(v);
|
||||||
|
|
||||||
if (aspectRatio) {
|
if (aspectRatio) {
|
||||||
newWidth = roundToMultiple(newHeight * aspectRatio, 8);
|
newWidth = roundToMultiple(newHeight * aspectRatio, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
@ -57,7 +57,7 @@ const ParamScaledHeight = () => {
|
|||||||
const resetHeight = Math.floor(initial);
|
const resetHeight = Math.floor(initial);
|
||||||
|
|
||||||
if (aspectRatio) {
|
if (aspectRatio) {
|
||||||
resetWidth = roundToMultiple(resetHeight * aspectRatio, 8);
|
resetWidth = roundToMultiple(resetHeight * aspectRatio, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
|
@ -41,7 +41,7 @@ const ParamScaledWidth = () => {
|
|||||||
let newHeight = scaledBoundingBoxDimensions.height;
|
let newHeight = scaledBoundingBoxDimensions.height;
|
||||||
|
|
||||||
if (aspectRatio) {
|
if (aspectRatio) {
|
||||||
newHeight = roundToMultiple(newWidth / aspectRatio, 8);
|
newHeight = roundToMultiple(newWidth / aspectRatio, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
@ -57,7 +57,7 @@ const ParamScaledWidth = () => {
|
|||||||
let resetHeight = scaledBoundingBoxDimensions.height;
|
let resetHeight = scaledBoundingBoxDimensions.height;
|
||||||
|
|
||||||
if (aspectRatio) {
|
if (aspectRatio) {
|
||||||
resetHeight = roundToMultiple(resetWidth / aspectRatio, 8);
|
resetHeight = roundToMultiple(resetWidth / aspectRatio, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user