Skip to content

Commit

Permalink
Made Ctrl turn off snapping if Snap to Fine Grid is enabled
Browse files Browse the repository at this point in the history
Previously, it would cause it to switch to Snap to Grid. This left no
way of temporarily turning off snapping for people who usually snap to a
fine grid.

Closes mapeditor#2061
  • Loading branch information
bjorn committed Jul 17, 2020
1 parent c4c4bf2 commit 390f383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiled/snaphelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ SnapHelper::SnapHelper(const MapRenderer *renderer,

void SnapHelper::toggleSnap()
{
mSnapToGrid = !mSnapToGrid;
mSnapToGrid = !(mSnapToGrid || mSnapToFineGrid);
mSnapToFineGrid = false;
}

Expand Down

0 comments on commit 390f383

Please sign in to comment.