mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): scaled bounding box uses canvas aspect ratio
This commit is contained in:
parent
00297716d6
commit
4ce9f9dc36
@ -11,8 +11,9 @@ import { useTranslation } from 'react-i18next';
|
|||||||
const selector = createMemoizedSelector(
|
const selector = createMemoizedSelector(
|
||||||
[stateSelector],
|
[stateSelector],
|
||||||
({ generation, canvas }) => {
|
({ generation, canvas }) => {
|
||||||
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod } = canvas;
|
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod, aspectRatio } =
|
||||||
const { model, aspectRatio } = generation;
|
canvas;
|
||||||
|
const { model } = generation;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
model,
|
model,
|
||||||
|
@ -11,8 +11,9 @@ import { useTranslation } from 'react-i18next';
|
|||||||
const selector = createMemoizedSelector(
|
const selector = createMemoizedSelector(
|
||||||
[stateSelector],
|
[stateSelector],
|
||||||
({ canvas, generation }) => {
|
({ canvas, generation }) => {
|
||||||
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions } = canvas;
|
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions, aspectRatio } =
|
||||||
const { model, aspectRatio } = generation;
|
canvas;
|
||||||
|
const { model } = generation;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
model,
|
model,
|
||||||
|
Loading…
Reference in New Issue
Block a user