[Bf-blender-cvs] [6866547517a] blender2.8: Fix cursor switching w/ transform redo
Campbell Barton
noreply at git.blender.org
Wed Apr 25 10:16:37 CEST 2018
Commit: 6866547517a3e112c99d87bb9247966bcff26054
Author: Campbell Barton
Date: Wed Apr 25 10:15:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB6866547517a3e112c99d87bb9247966bcff26054
Fix cursor switching w/ transform redo
Recent cursor changes stopped number button continuous grab.
===================================================================
M source/blender/editors/transform/transform_input.c
===================================================================
diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c
index e53ae557631..4c5faa32369 100644
--- a/source/blender/editors/transform/transform_input.c
+++ b/source/blender/editors/transform/transform_input.c
@@ -350,14 +350,18 @@ void initMouseInputMode(TransInfo *t, MouseInput *mi, MouseInputMode mode)
switch(t->helpline) {
case HLP_NONE:
/* INPUT_VECTOR, INPUT_CUSTOM_RATIO, INPUT_CUSTOM_RATIO_FLIP */
- WM_cursor_set(win, BC_HANDCURSOR);
+ if (t->flag & T_MODAL) {
+ WM_cursor_set(win, BC_HANDCURSOR);
+ }
break;
case HLP_SPRING:
case HLP_ANGLE:
case HLP_TRACKBALL:
case HLP_HARROW:
case HLP_VARROW:
- WM_cursor_set(win, CURSOR_NONE);
+ if (t->flag & T_MODAL) {
+ WM_cursor_set(win, CURSOR_NONE);
+ }
break;
default:
break;
More information about the Bf-blender-cvs
mailing list