From 50104b11a19ead0ca87dcaabad290495c98a6ce1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 11 Jan 2021 16:31:30 +1100 Subject: Fix T84582: WalkNavigation.mouse_speed ignored with tablet Scale the speed up 4x instead of clamping the value to a minimum of 4. --- source/blender/editors/space_view3d/view3d_walk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index 665d704e6b2..5b42f221c80 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -708,8 +708,8 @@ static void walkEvent(bContext *C, WalkInfo *walk, const wmEvent *event) walk->is_cursor_absolute = true; copy_v2_v2_int(walk->prev_mval, event->mval); copy_v2_v2_int(walk->center_mval, event->mval); - /* without this we can't turn 180d */ - CLAMP_MIN(walk->mouse_speed, 4.0f); + /* Without this we can't turn 180d with the default speed of 1.0. */ + walk->mouse_speed *= 4.0f; } #endif /* USE_TABLET_SUPPORT */ -- cgit v1.2.3