[Bf-blender-cvs] [18578238399] master: WM: fix panel drag event handling

Campbell Barton noreply at git.blender.org
Fri Jun 8 19:00:00 CEST 2018


Commit: 185782383996d4d2abcf23bdc97688be679b393e
Author: Campbell Barton
Date:   Fri Jun 8 18:58:41 2018 +0200
Branches: master
https://developer.blender.org/rB185782383996d4d2abcf23bdc97688be679b393e

WM: fix panel drag event handling

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

M	source/blender/editors/interface/interface_panel.c

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

diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 2bb1fc9b144..2c57c802542 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -2052,7 +2052,7 @@ static int ui_handler_panel(bContext *C, const wmEvent *event, void *userdata)
 	uiHandlePanelData *data = panel->activedata;
 
 	/* verify if we can stop */
-	if (event->type == LEFTMOUSE && event->val != KM_PRESS) {
+	if (event->type == LEFTMOUSE && event->val == KM_RELEASE) {
 		ScrArea *sa = CTX_wm_area(C);
 		ARegion *ar = CTX_wm_region(C);
 		int align = panel_aligned(sa, ar);



More information about the Bf-blender-cvs mailing list