@@ -2016,6 +2016,18 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
2016
2016
if (ED_IS_SHORTCUT (" spatial_editor/right_view" , p_event)) {
2017
2017
_menu_option (VIEW_RIGHT);
2018
2018
}
2019
+ if (ED_IS_SHORTCUT (" spatial_editor/orbit_view_down" , p_event)) {
2020
+ cursor.x_rot -= Math_PI / 12.0 ;
2021
+ }
2022
+ if (ED_IS_SHORTCUT (" spatial_editor/orbit_view_up" , p_event)) {
2023
+ cursor.x_rot += Math_PI / 12.0 ;
2024
+ }
2025
+ if (ED_IS_SHORTCUT (" spatial_editor/orbit_view_right" , p_event)) {
2026
+ cursor.y_rot -= Math_PI / 12.0 ;
2027
+ }
2028
+ if (ED_IS_SHORTCUT (" spatial_editor/orbit_view_left" , p_event)) {
2029
+ cursor.y_rot += Math_PI / 12.0 ;
2030
+ }
2019
2031
if (ED_IS_SHORTCUT (" spatial_editor/focus_origin" , p_event)) {
2020
2032
_menu_option (VIEW_CENTER_TO_ORIGIN);
2021
2033
}
@@ -6175,6 +6187,10 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) {
6175
6187
ED_SHORTCUT (" spatial_editor/front_view" , TTR (" Front View" ), KEY_KP_1);
6176
6188
ED_SHORTCUT (" spatial_editor/left_view" , TTR (" Left View" ), KEY_MASK_ALT + KEY_KP_3);
6177
6189
ED_SHORTCUT (" spatial_editor/right_view" , TTR (" Right View" ), KEY_KP_3);
6190
+ ED_SHORTCUT (" spatial_editor/orbit_view_down" , TTR (" Orbit View Down" ), KEY_KP_2);
6191
+ ED_SHORTCUT (" spatial_editor/orbit_view_left" , TTR (" Orbit View Left" ), KEY_KP_4);
6192
+ ED_SHORTCUT (" spatial_editor/orbit_view_right" , TTR (" Orbit View Right" ), KEY_KP_6);
6193
+ ED_SHORTCUT (" spatial_editor/orbit_view_up" , TTR (" Orbit View Up" ), KEY_KP_8);
6178
6194
ED_SHORTCUT (" spatial_editor/switch_perspective_orthogonal" , TTR (" Switch Perspective/Orthogonal View" ), KEY_KP_5);
6179
6195
ED_SHORTCUT (" spatial_editor/insert_anim_key" , TTR (" Insert Animation Key" ), KEY_K);
6180
6196
ED_SHORTCUT (" spatial_editor/focus_origin" , TTR (" Focus Origin" ), KEY_O);
0 commit comments