You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove FOV adjustment with Alt + mouse wheel in the 3D editor
This shortcut got in the way when using the Maya navigation scheme,
and also when using the slow freelook modifier (regardless of
navigation scheme).
(cherry picked from commit 53f4ff243d)
This commit is contained in:
committed by
Rémi Verschelde
parent
396955b4f2
commit
77d596088e
@@ -1171,26 +1171,18 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
||||
float zoom_factor = 1 + (ZOOM_FREELOOK_MULTIPLIER - 1) * b->get_factor();
|
||||
switch (b->get_button_index()) {
|
||||
case BUTTON_WHEEL_UP: {
|
||||
if (b->get_alt()) {
|
||||
scale_fov(-0.05);
|
||||
if (is_freelook_active()) {
|
||||
scale_freelook_speed(zoom_factor);
|
||||
} else {
|
||||
if (is_freelook_active()) {
|
||||
scale_freelook_speed(zoom_factor);
|
||||
} else {
|
||||
scale_cursor_distance(1.0 / zoom_factor);
|
||||
}
|
||||
scale_cursor_distance(1.0 / zoom_factor);
|
||||
}
|
||||
} break;
|
||||
|
||||
case BUTTON_WHEEL_DOWN: {
|
||||
if (b->get_alt()) {
|
||||
scale_fov(0.05);
|
||||
if (is_freelook_active()) {
|
||||
scale_freelook_speed(1.0 / zoom_factor);
|
||||
} else {
|
||||
if (is_freelook_active()) {
|
||||
scale_freelook_speed(1.0 / zoom_factor);
|
||||
} else {
|
||||
scale_cursor_distance(zoom_factor);
|
||||
}
|
||||
scale_cursor_distance(zoom_factor);
|
||||
}
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user