[Bf-blender-cvs] [1a516bb714b] master: Fix T83519: Line Gesture flip state not updating without a mouse move event

Pablo Dobarro noreply at git.blender.org
Wed May 25 18:36:21 CEST 2022


Commit: 1a516bb714bf2892d9d10dc83cc1215a41a3d1ea
Author: Pablo Dobarro
Date:   Wed May 25 18:22:28 2022 +0200
Branches: master
https://developer.blender.org/rB1a516bb714bf2892d9d10dc83cc1215a41a3d1ea

Fix T83519: Line Gesture flip state not updating without a mouse move event

The wm_gesture_tag_redraw function was only called on mouse move, so the
flip state preview was not updating just by pressing the F key.

Reviewed By: Severin

Maniphest Tasks: T83519

Differential Revision: https://developer.blender.org/D9779

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

M	source/blender/windowmanager/intern/wm_gesture_ops.c

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

diff --git a/source/blender/windowmanager/intern/wm_gesture_ops.c b/source/blender/windowmanager/intern/wm_gesture_ops.c
index 1fdc8bbe2c8..e3892933905 100644
--- a/source/blender/windowmanager/intern/wm_gesture_ops.c
+++ b/source/blender/windowmanager/intern/wm_gesture_ops.c
@@ -819,6 +819,7 @@ int WM_gesture_straightline_modal(bContext *C, wmOperator *op, const wmEvent *ev
         /* Toggle flipping on/off. */
         gesture->use_flip = !gesture->use_flip;
         gesture_straightline_apply(C, op);
+        wm_gesture_tag_redraw(win);
         break;
       }
       case GESTURE_MODAL_SELECT: {
@@ -897,6 +898,7 @@ int WM_gesture_straightline_oneshot_modal(bContext *C, wmOperator *op, const wmE
       case GESTURE_MODAL_FLIP: {
         /* Toggle flip on/off. */
         gesture->use_flip = !gesture->use_flip;
+        wm_gesture_tag_redraw(win);
         break;
       }
       case GESTURE_MODAL_SELECT:



More information about the Bf-blender-cvs mailing list