diff options
| author | volzhs | 2017-01-15 23:28:34 +0900 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-18 19:42:07 +0100 |
| commit | 507bb0e1cb34e875d52685fd2100c448579f6bac (patch) | |
| tree | 228b7f63e4ddd5a7cddb8ef492853f9ebf73a2ba | |
| parent | ab7faa12814b92892d7757db3113307732389300 (diff) | |
| download | godot-507bb0e1cb34e875d52685fd2100c448579f6bac.tar.gz godot-507bb0e1cb34e875d52685fd2100c448579f6bac.tar.zst godot-507bb0e1cb34e875d52685fd2100c448579f6bac.zip | |
Change camera default rotation
(cherry picked from commit 0ecf7f7ca0eda52264850821a605d312e503b6f0)
| -rw-r--r-- | tools/editor/plugins/spatial_editor_plugin.cpp | 6 | ||||
| -rw-r--r-- | tools/editor/plugins/spatial_editor_plugin.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index 0a78c11ba..74fed0f42 100644 --- a/tools/editor/plugins/spatial_editor_plugin.cpp +++ b/tools/editor/plugins/spatial_editor_plugin.cpp @@ -2319,10 +2319,10 @@ void SpatialEditorViewport::reset() { message_time=0; message=""; last_message=""; - name=TTR("Top"); + name=""; - cursor.x_rot=0; - cursor.y_rot=0; + cursor.x_rot=0.5; + cursor.y_rot=0.5; cursor.distance=4; cursor.region_select=false; _update_name(); diff --git a/tools/editor/plugins/spatial_editor_plugin.h b/tools/editor/plugins/spatial_editor_plugin.h index 2cae6a807..259ac2cb6 100644 --- a/tools/editor/plugins/spatial_editor_plugin.h +++ b/tools/editor/plugins/spatial_editor_plugin.h @@ -210,7 +210,7 @@ private: bool region_select; Point2 region_begin,region_end; - Cursor() { x_rot=y_rot=0; distance=4; region_select=false; } + Cursor() { x_rot=y_rot=0.5; distance=4; region_select=false; } } cursor; RID move_gizmo_instance[3], rotate_gizmo_instance[3]; |
