summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorordigdug <originaldigdug@yahoo.com>2018-07-21 08:38:00 -0400
committerordigdug <originaldigdug@yahoo.com>2018-07-22 05:00:51 -0400
commit7ab7bda48e5685fb6c38ec7f7f1b1b4afd9c661c (patch)
treebda2b65ad925ed88588b03521222d8ff638228f9 /editor
parentcfcb6e11f25adb13177ba08777263288a5ec6f61 (diff)
Fix grid missing lines #20246
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp4
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;
}