diff options
author | marynate <mary.w.nate@gmail.com> | 2014-07-15 15:06:55 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-07-15 15:07:29 +0800 |
commit | f5c56f4a3de502ecc8e5d1730f9657abd81a014b (patch) | |
tree | ba3939cb3db9124bbaa4053bea5673a8d352b042 /tools | |
parent | e55ef57f6253673ab9a5553d47964cd378423334 (diff) |
Make sure View Grid state saved with scene state
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/plugins/spatial_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index 227cfa5c11..e9020c91f5 100644 --- a/tools/editor/plugins/spatial_editor_plugin.cpp +++ b/tools/editor/plugins/spatial_editor_plugin.cpp @@ -2345,8 +2345,7 @@ void SpatialEditor::set_state(const Dictionary& p_state) { bool use = d["show_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 ); - grid_enabled=use; + _menu_item_pressed(MENU_VIEW_GRID); } } |