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
4d20cc11d4
commit
298f1919fa
@ -397,7 +397,7 @@ export class CanvasLayer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.resetScale();
|
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 = () => {
|
stopTransform = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user