From 298f1919faa335115d62d1f76fb90fa5c7f9d911 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:57:05 +1000 Subject: [PATCH] fix(ui): round position when rasterizing layer --- .../web/src/features/controlLayers/konva/CanvasLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts index 7748b9c785..15917f5776 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasLayer.ts @@ -397,7 +397,7 @@ export class CanvasLayer { } } this.resetScale(); - dispatch(layerRasterized({ id: this.id, imageObject, position: { x: rect.x, y: rect.y } })); + dispatch(layerRasterized({ id: this.id, imageObject, position: { x: Math.round(rect.x), y: Math.round(rect.y) } })); }; stopTransform = () => {