Merge pull request #34188 from dankan1890/quick_fix

Fix TilesetEditorContext snaps separation.
This commit is contained in:
Rémi Verschelde 2019-12-09 08:32:43 +01:00 committed by GitHub
commit 097a561fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2535,7 +2535,7 @@ void TileSetEditor::draw_grid_snap() {
if (i == 0 && snap_offset.y != 0) {
last_p = snap_offset.y;
}
if (snap_separation.x != 0) {
if (snap_separation.y != 0) {
if (i != 0) {
workspace->draw_rect(Rect2(0, last_p, s.width, snap_separation.y), grid_color);
last_p += snap_separation.y;