summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authordankan1890 <mewuidev2@gmail.com>2019-12-08 00:29:35 +0100
committerdankan1890 <mewuidev2@gmail.com>2019-12-08 00:29:35 +0100
commitf2e396f15b104cf7859dfd4bf011f94cf74e790d (patch)
tree8b4393c82138df3da97787c4c920de8b27e940cf /editor/plugins
parent8eb183aebb9c79ff92d6f566af7ad2f91696ce08 (diff)
Fix TilesetEditorContext separation snap.
Fixes #34182
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp2
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;