Преглед на файлове

Merge pull request #43681 from aaronfranke/grid-view-update

Update the 3D grid when the "View Grid" checkbox is changed
Rémi Verschelde преди 4 години
родител
ревизия
b115ea4c28
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      editor/plugins/node_3d_editor_plugin.cpp

+ 2 - 0
editor/plugins/node_3d_editor_plugin.cpp

@@ -5013,6 +5013,8 @@ void Node3DEditor::_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);