mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-24 03:40:14 +00:00
Improve snap to grid for line, ellipse, and rectangle (fix #1500)
This commit is contained in:
parent
7072ecebe3
commit
7690cedcbe
@ -180,8 +180,7 @@ public:
|
|||||||
|
|
||||||
// Adjust points for selection like tools (so we can select tiles)
|
// Adjust points for selection like tools (so we can select tiles)
|
||||||
if (loop->getController()->canSnapToGrid() &&
|
if (loop->getController()->canSnapToGrid() &&
|
||||||
loop->getSnapToGrid() &&
|
loop->getSnapToGrid()) {
|
||||||
loop->getInk()->isSelection()) {
|
|
||||||
if (stroke[0].x < stroke[1].x)
|
if (stroke[0].x < stroke[1].x)
|
||||||
stroke[1].x--;
|
stroke[1].x--;
|
||||||
else if (stroke[0].x > stroke[1].x)
|
else if (stroke[0].x > stroke[1].x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user