mirror of
https://github.com/invoke-ai/InvokeAI
synced 2026-04-30 18:52:14 +02:00
fix(ui): close viewer when transforming
This commit is contained in:
parent
813cf87920
commit
5739799e2e
@ -52,8 +52,9 @@ export const useEntityTransform = (entityIdentifier: CanvasEntityIdentifier | nu
|
||||
if (!adapter) {
|
||||
return;
|
||||
}
|
||||
imageViewer.close();
|
||||
await adapter.transformer.startTransform();
|
||||
}, [isDisabled, entityIdentifier, canvasManager]);
|
||||
}, [isDisabled, entityIdentifier, canvasManager, imageViewer]);
|
||||
|
||||
const fitToBbox = useCallback(async () => {
|
||||
if (isDisabled) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user