[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48216] branches/soc-2012-bratwurst/source /blender/editors/interface/interface_handlers.c: Fix drag related problems that cropped up after the non-modal patch.

Jorge Rodriguez bs.vino at gmail.com
Sat Jun 23 02:05:56 CEST 2012


Revision: 48216
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48216
Author:   vino
Date:     2012-06-23 00:05:49 +0000 (Sat, 23 Jun 2012)
Log Message:
-----------
Fix drag related problems that cropped up after the non-modal patch.

Modified Paths:
--------------
    branches/soc-2012-bratwurst/source/blender/editors/interface/interface_handlers.c

Modified: branches/soc-2012-bratwurst/source/blender/editors/interface/interface_handlers.c
===================================================================
--- branches/soc-2012-bratwurst/source/blender/editors/interface/interface_handlers.c	2012-06-22 22:43:13 UTC (rev 48215)
+++ branches/soc-2012-bratwurst/source/blender/editors/interface/interface_handlers.c	2012-06-23 00:05:49 UTC (rev 48216)
@@ -2261,7 +2261,7 @@
 	if (data->state == BUTTON_STATE_HIGHLIGHT) {
 
 		/* first handle click on icondrag type button */
-		if (event->type == LEFTMOUSE && but->dragpoin) {
+		if (event->type == LEFTMOUSE && event->val == KM_PRESS && but->dragpoin) {
 			if (ui_but_mouse_inside_icon(but, data->region, event)) {
 				
 				/* tell the button to wait and keep checking further events to




More information about the Bf-blender-cvs mailing list