[Bf-blender-cvs] [3995b33a424] master: WM: don't make LMB a special case for double click

Campbell Barton noreply at git.blender.org
Thu Jun 21 10:32:58 CEST 2018


Commit: 3995b33a424bb0b1976a4258c06c5516ec83adc1
Author: Campbell Barton
Date:   Thu Jun 21 09:49:30 2018 +0200
Branches: master
https://developer.blender.org/rB3995b33a424bb0b1976a4258c06c5516ec83adc1

WM: don't make LMB a special case for double click

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

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 7e26ffa52f8..c9a09f46a37 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -451,7 +451,7 @@ static int wm_handler_ui_call(bContext *C, wmEventHandler *handler, const wmEven
 	/* UI code doesn't handle return values - it just always returns break.
 	 * to make the DBL_CLICK conversion work, we just don't send this to UI, except mouse clicks */
 	if (((handler->flag & WM_HANDLER_ACCEPT_DBL_CLICK) == 0) &&
-	    (event->type != LEFTMOUSE) &&
+	    !ISMOUSE_BUTTON(event->type) &&
 	    (event->val == KM_DBL_CLICK))
 	{
 		return WM_HANDLER_CONTINUE;



More information about the Bf-blender-cvs mailing list