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
This commit is contained in:
committed by
Jeroen Bakker
parent
496394daad
commit
1a516bb714
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user