Fix T84582: WalkNavigation.mouse_speed ignored with tablet

Scale the speed up 4x instead of clamping the value to a minimum of 4.
This commit is contained in:
Campbell Barton 2021-01-11 16:31:30 +11:00
parent ab5986cf3a
commit 50104b11a1
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #84582, WalkNavigation.mouse_speed has no affect when a Wacom pen is in use
1 changed files with 2 additions and 2 deletions

View File

@ -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 */