mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): round position when rasterizing layer
This commit is contained in:
parent
243feecef9
commit
6c688d6878
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user