Merge pull request from aaronfranke/grid-view-update

Update the 3D grid when the "View Grid" checkbox is changed
This commit is contained in:
Rémi Verschelde 2020-11-19 11:56:41 +01:00 committed by GitHub
commit b115ea4c28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(p_option), grid_enabled);