1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #39372 from aaronfranke/editor-cam-rot

Change the default editor camera rotation to position it in +X +Y +Z
This commit is contained in:
Rémi Verschelde
2020-06-09 14:11:30 +02:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -3419,11 +3419,7 @@ void Node3DEditorViewport::reset() {
last_message = ""; last_message = "";
name = ""; name = "";
cursor.x_rot = 0.5; cursor = Cursor();
cursor.y_rot = 0.5;
cursor.distance = 4;
cursor.region_select = false;
cursor.pos = Vector3();
_update_name(); _update_name();
} }

View File

@@ -391,7 +391,9 @@ private:
Point2 region_begin, region_end; Point2 region_begin, region_end;
Cursor() { 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; distance = 4;
region_select = false; region_select = false;
} }