Browse Source

Update the 3D grid when the "View Grid" checkbox is changed

(cherry picked from commit 71d1909b39b96c1fde253b575bc91c33219f60a3)
Aaron Franke 4 years ago
parent
commit
b9641efc5c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/spatial_editor_plugin.cpp

+ 2 - 0
editor/plugins/spatial_editor_plugin.cpp

@@ -4993,6 +4993,8 @@ void SpatialEditor::_menu_item_pressed(int p_option) {
 					}
 				}
 			}
+			_finish_grid();
+			_init_grid();
 
 			view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(p_option), grid_enabled);