diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-11 08:31:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-11 08:33:15 +0300 |
commit | 50104b11a19ead0ca87dcaabad290495c98a6ce1 (patch) | |
tree | 5f582acc55e6f710bf579664902a92740ef5031a /source/blender/editors/space_view3d | |
parent | ab5986cf3a2eea3a8ba3f7029f936f79ade921ef (diff) |
Fix T84582: WalkNavigation.mouse_speed ignored with tablet
Scale the speed up 4x instead of clamping the value to a minimum of 4.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |