diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-07-24 14:49:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 14:49:53 +0200 |
commit | a2f9ce2569bf2e16b3b4c5d2376a2e1fb0def90e (patch) | |
tree | 729f1c42b010bc03c40793bbc683ea5c315b92b7 /editor/plugins | |
parent | c2a2567ecccf84a7e7f38eb601ef42d3933088b4 (diff) | |
parent | 7ab7bda48e5685fb6c38ec7f7f1b1b4afd9c661c (diff) |
Merge pull request #20328 from ordigdug/fix-grid-missing-lines
Fix grid missing lines. Fixes: #20246
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 37b8562e96..f0c874a150 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4641,9 +4641,7 @@ void SpatialEditor::_init_grid() { Vector3 p2_dest = p2 * (-axis_n1 + axis_n2); Color line_color = secondary_grid_color; - if (j == 0) { - continue; - } else if (j % primary_grid_steps == 0) { + if (j % primary_grid_steps == 0) { line_color = primary_grid_color; } |