Commit: 6af169f5365357a2949cc694c300d756d07567db
Author: Campbell Barton
Date: Thu Jun 7 18:56:51 2018 +0200
Branches: temp-keymap-changes
https://developer.blender.org/rB6af169f5365357a2949cc694c300d756d07567db
Test fix for drag after release
===================================================================
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 02c585fc677..87afd04c719 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -2557,9 +2557,14 @@ static int wm_handlers_do(bContext *C, wmEvent *event,
ListBase *handlers)
/* eventstate stores if previous event was a KM_PRESS,
in case that
* wasn't handled, the KM_RELEASE will become a
KM_CLICK */
- if (win && event->val == KM_PRESS) {
- win->eventstate->check_click = true;
- win->eventstate->check_drag = true;
+ if (win) {
+ if (event->val == KM_PRESS) {
+ win->eventstate->check_click = true;
+ win->eventstate->check_drag = true;
+ }
+ else if (event->val == KM_RELEASE) {
+ win->eventstate->check_drag = false;
+ }
}
if (win && win->eventstate->prevtype == event->type) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs