浏览代码

Merge pull request #34188 from dankan1890/quick_fix

Fix TilesetEditorContext snaps separation.
Rémi Verschelde 5 年之前
父节点
当前提交
097a561fc3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/tile_set_editor_plugin.cpp

+ 1 - 1
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;