diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-09 08:32:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 08:32:43 +0100 |
commit | 097a561fc327a3de34d8d6cc3e8d7c3338227520 (patch) | |
tree | 8b4393c82138df3da97787c4c920de8b27e940cf | |
parent | 8eb183aebb9c79ff92d6f566af7ad2f91696ce08 (diff) | |
parent | f2e396f15b104cf7859dfd4bf011f94cf74e790d (diff) |
Merge pull request #34188 from dankan1890/quick_fix
Fix TilesetEditorContext snaps separation.
-rw-r--r-- | editor/plugins/tile_set_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp index a8cf5b46e1..9e873b641b 100644 --- a/editor/plugins/tile_set_editor_plugin.cpp +++ b/editor/plugins/tile_set_editor_plugin.cpp @@ -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; |