diff options
author | janglee <merupatel123@gmail.com> | 2020-02-19 12:52:31 +0530 |
---|---|---|
committer | janglee <merupatel123@gmail.com> | 2020-02-19 21:33:43 +0530 |
commit | d3c580f0bc69ce3ee62ebf7bac115d3a48c3793c (patch) | |
tree | 529e14c42cf2dc78ac9effee7efd75dcf4391c7c /editor/plugins/spatial_editor_plugin.cpp | |
parent | 7c5ce0ac7c8d7ee5aca8e0361cfc28521c8d479c (diff) |
Make orthogonal view mode persistent in new scene
Fixes #36339.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 88b4f011ee..b890bc2fb8 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2147,6 +2147,8 @@ void SpatialEditorViewport::_notification(int p_what) { set_process(visible); if (visible) { + orthogonal = view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(VIEW_ORTHOGONAL)); + _update_name(); _update_camera(0); } else { set_freelook_active(false); |