[Bf-blender-cvs] [50104b11a19] master: Fix T84582: WalkNavigation.mouse_speed ignored with tablet

Campbell Barton noreply at git.blender.org
Mon Jan 11 07:53:25 CET 2021


Commit: 50104b11a19ead0ca87dcaabad290495c98a6ce1
Author: Campbell Barton
Date:   Mon Jan 11 16:31:30 2021 +1100
Branches: master
https://developer.blender.org/rB50104b11a19ead0ca87dcaabad290495c98a6ce1

Fix T84582: WalkNavigation.mouse_speed ignored with tablet

Scale the speed up 4x instead of clamping the value to a minimum of 4.

===================================================================

M	source/blender/editors/space_view3d/view3d_walk.c

===================================================================

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



More information about the Bf-blender-cvs mailing list