[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57422] trunk/blender/source/blender/ editors/interface/interface_handlers.c: fix [#35713] Set Origin not waiting for user input.

Campbell Barton ideasman42 at gmail.com
Thu Jun 13 03:39:08 CEST 2013


Revision: 57422
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57422
Author:   campbellbarton
Date:     2013-06-13 01:39:07 +0000 (Thu, 13 Jun 2013)
Log Message:
-----------
fix [#35713] Set Origin not waiting for user input.

Only activate search-box items on mouse-release,
Otherwise this gives odd behavior when using the operator-search popup since some tools expect the mouse buttons not to be held when activating which includes operators that have their own popup menus.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_handlers.c

Modified: trunk/blender/source/blender/editors/interface/interface_handlers.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_handlers.c	2013-06-13 01:22:34 UTC (rev 57421)
+++ trunk/blender/source/blender/editors/interface/interface_handlers.c	2013-06-13 01:39:07 UTC (rev 57422)
@@ -2128,8 +2128,11 @@
 				changed = true;
 			}
 			else if (inbox) {
-				button_activate_state(C, but, BUTTON_STATE_EXIT);
-				retval = WM_UI_HANDLER_BREAK;
+				/* if we allow activation on key press, it gives problems launching operators [#35713] */
+				if (event->val == KM_RELEASE) {
+					button_activate_state(C, but, BUTTON_STATE_EXIT);
+					retval = WM_UI_HANDLER_BREAK;
+				}
 			}
 			break;
 		}




More information about the Bf-blender-cvs mailing list