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

Fix grid missing lines. Fixes: #20246
This commit is contained in:
Rémi Verschelde 2018-07-24 14:49:53 +02:00 committed by GitHub
commit a2f9ce2569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}