mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Fix Alt+mouse movement to snap the selection movement in the tilemap layer grid
This commit is contained in:
parent
3789b5f21c
commit
e6e644707a
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2019 Igara Studio S.A.
|
||||
// Copyright (C) 2019-2020 Igara Studio S.A.
|
||||
// Copyright (C) 2001-2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -346,7 +346,7 @@ void PixelsMovement::moveImage(const gfx::Point& pos, MoveModifier moveModifier)
|
||||
|
||||
if ((moveModifier & SnapToGridMovement) == SnapToGridMovement) {
|
||||
// Snap the x1,y1 point to the grid.
|
||||
gfx::Rect gridBounds = m_document->sprite()->gridBounds();
|
||||
gfx::Rect gridBounds = m_site.gridBounds();
|
||||
gfx::PointF gridOffset(
|
||||
snap_to_grid(
|
||||
gridBounds,
|
||||
|
Loading…
x
Reference in New Issue
Block a user