[Bf-blender-cvs] [09a8f5ebcab] master: Fix T86384: Click detection fails in some cases with modifiers
Campbell Barton
noreply at git.blender.org
Mon Mar 8 14:45:19 CET 2021
Commit: 09a8f5ebcab446758b37d5359dff77ea4edcf7d6
Author: Campbell Barton
Date: Tue Mar 9 00:42:56 2021 +1100
Branches: master
https://developer.blender.org/rB09a8f5ebcab446758b37d5359dff77ea4edcf7d6
Fix T86384: Click detection fails in some cases with modifiers
Regression in b5d154f400e46ba322f0e08a231bb2557bf51a1e
===================================================================
M source/blender/windowmanager/intern/wm_event_system.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 4c4523c80bc..470952956c8 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -3002,7 +3002,7 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
* wasn't handled, the KM_RELEASE will become a KM_CLICK */
if (event->val == KM_PRESS) {
- if (event->prevval != KM_PRESS) {
+ if (event->is_repeat == false) {
win->event_queue_check_click = true;
win->event_queue_check_drag = true;
}
More information about the Bf-blender-cvs
mailing list