You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Make sure View Grid state saved with scene state
This commit is contained in:
@@ -2345,8 +2345,7 @@ void SpatialEditor::set_state(const Dictionary& p_state) {
|
|||||||
bool use = d["show_grid"];
|
bool use = d["show_grid"];
|
||||||
|
|
||||||
if (use!=view_menu->get_popup()->is_item_checked( view_menu->get_popup()->get_item_index(MENU_VIEW_GRID))) {
|
if (use!=view_menu->get_popup()->is_item_checked( view_menu->get_popup()->get_item_index(MENU_VIEW_GRID))) {
|
||||||
view_menu->get_popup()->set_item_checked( view_menu->get_popup()->get_item_index(MENU_VIEW_GRID), use );
|
_menu_item_pressed(MENU_VIEW_GRID);
|
||||||
grid_enabled=use;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user