From 0b6a4108902b3d08c4e90c91858c29f07440167a Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 7 Jun 2020 13:21:29 -0400 Subject: [PATCH] Change the default editor camera rotation to position it in +X +Y +Z (cherry picked from commit 6c2df6792b59fa6b84f99239797d1d54c8ded764) --- editor/plugins/spatial_editor_plugin.cpp | 6 +----- editor/plugins/spatial_editor_plugin.h | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 0b68e1b3646..c42fef88a72 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3407,11 +3407,7 @@ void SpatialEditorViewport::reset() { last_message = ""; name = ""; - cursor.x_rot = 0.5; - cursor.y_rot = 0.5; - cursor.distance = 4; - cursor.region_select = false; - cursor.pos = Vector3(); + cursor = Cursor(); _update_name(); } diff --git a/editor/plugins/spatial_editor_plugin.h b/editor/plugins/spatial_editor_plugin.h index aa45c7bbf51..c0b4cdadf8c 100644 --- a/editor/plugins/spatial_editor_plugin.h +++ b/editor/plugins/spatial_editor_plugin.h @@ -375,7 +375,9 @@ private: Point2 region_begin, region_end; Cursor() { - x_rot = y_rot = 0.5; + // These rotations place the camera in +X +Y +Z, aka south east, facing north west. + x_rot = 0.5; + y_rot = -0.5; distance = 4; region_select = false; }