diff options
author | dankan1890 <mewuidev2@gmail.com> | 2019-12-08 00:29:35 +0100 |
---|---|---|
committer | dankan1890 <mewuidev2@gmail.com> | 2019-12-08 00:29:35 +0100 |
commit | f2e396f15b104cf7859dfd4bf011f94cf74e790d (patch) | |
tree | 8b4393c82138df3da97787c4c920de8b27e940cf /editor/plugins | |
parent | 8eb183aebb9c79ff92d6f566af7ad2f91696ce08 (diff) |
Fix TilesetEditorContext separation snap.
Fixes #34182
Diffstat (limited to 'editor/plugins')
-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; |