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(
|
||||
[stateSelector],
|
||||
({ generation, canvas }) => {
|
||||
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod } = canvas;
|
||||
const { model, aspectRatio } = generation;
|
||||
const { scaledBoundingBoxDimensions, boundingBoxScaleMethod, aspectRatio } =
|
||||
canvas;
|
||||
const { model } = generation;
|
||||
|
||||
return {
|
||||
model,
|
||||
|
@ -11,8 +11,9 @@ import { useTranslation } from 'react-i18next';
|
||||
const selector = createMemoizedSelector(
|
||||
[stateSelector],
|
||||
({ canvas, generation }) => {
|
||||
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions } = canvas;
|
||||
const { model, aspectRatio } = generation;
|
||||
const { boundingBoxScaleMethod, scaledBoundingBoxDimensions, aspectRatio } =
|
||||
canvas;
|
||||
const { model } = generation;
|
||||
|
||||
return {
|
||||
model,
|
||||
|
Loading…
Reference in New Issue
Block a user