Browse Source

Revert "Fix swapped front/rear view"

This reverts commit f995d6cd17e227492dee14627e9262292c58d6a4.
Silc Lizard (Tokage) Renew 2 years ago
parent
commit
4d3d800d33
1 changed files with 2 additions and 2 deletions
  1. 2 2
      editor/plugins/node_3d_editor_plugin.cpp

+ 2 - 2
editor/plugins/node_3d_editor_plugin.cpp

@@ -3176,7 +3176,7 @@ void Node3DEditorViewport::_menu_option(int p_option) {
 		} break;
 		} break;
 		case VIEW_FRONT: {
 		case VIEW_FRONT: {
 			cursor.x_rot = 0;
 			cursor.x_rot = 0;
-			cursor.y_rot = Math_PI;
+			cursor.y_rot = 0;
 			set_message(TTR("Front View."), 2);
 			set_message(TTR("Front View."), 2);
 			view_type = VIEW_TYPE_FRONT;
 			view_type = VIEW_TYPE_FRONT;
 			_set_auto_orthogonal();
 			_set_auto_orthogonal();
@@ -3185,7 +3185,7 @@ void Node3DEditorViewport::_menu_option(int p_option) {
 		} break;
 		} break;
 		case VIEW_REAR: {
 		case VIEW_REAR: {
 			cursor.x_rot = 0;
 			cursor.x_rot = 0;
-			cursor.y_rot = 0;
+			cursor.y_rot = Math_PI;
 			set_message(TTR("Rear View."), 2);
 			set_message(TTR("Rear View."), 2);
 			view_type = VIEW_TYPE_REAR;
 			view_type = VIEW_TYPE_REAR;
 			_set_auto_orthogonal();
 			_set_auto_orthogonal();