Browse Source

Make orthogonal view mode persistent in new scene

Fixes #36339.

(cherry picked from commit d3c580f0bc69ce3ee62ebf7bac115d3a48c3793c)
janglee 5 years ago
parent
commit
56437cddeb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/spatial_editor_plugin.cpp

+ 2 - 0
editor/plugins/spatial_editor_plugin.cpp

@@ -2122,6 +2122,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);