瀏覽代碼

Merge pull request #20328 from ordigdug/fix-grid-missing-lines

Fix grid missing lines. Fixes: #20246
Rémi Verschelde 7 年之前
父節點
當前提交
a2f9ce2569
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      editor/plugins/spatial_editor_plugin.cpp

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