mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Merge branch 'main' into chore/clean-up-unused-files
This commit is contained in:
commit
3288d9b31a
@ -104,22 +104,22 @@ const ControlNetImagePreview = ({ isSmall, controlNet }: Props) => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const handleSetControlImageToDimensions = useCallback(() => {
|
const handleSetControlImageToDimensions = useCallback(() => {
|
||||||
if (!processedControlImage) {
|
if (!controlImage) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (activeTabName === 'unifiedCanvas') {
|
if (activeTabName === 'unifiedCanvas') {
|
||||||
dispatch(
|
dispatch(
|
||||||
setBoundingBoxDimensions({
|
setBoundingBoxDimensions({
|
||||||
width: processedControlImage.width,
|
width: controlImage.width,
|
||||||
height: processedControlImage.height,
|
height: controlImage.height,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
dispatch(setWidth(processedControlImage.width));
|
dispatch(setWidth(controlImage.width));
|
||||||
dispatch(setHeight(processedControlImage.height));
|
dispatch(setHeight(controlImage.height));
|
||||||
}
|
}
|
||||||
}, [processedControlImage, activeTabName, dispatch]);
|
}, [controlImage, activeTabName, dispatch]);
|
||||||
|
|
||||||
const handleMouseEnter = useCallback(() => {
|
const handleMouseEnter = useCallback(() => {
|
||||||
setIsMouseOverImage(true);
|
setIsMouseOverImage(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user