diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 09:01:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-08 09:01:43 +0300 |
commit | 009c38df5303f0a32eed2962650b89ebd6ae2e46 (patch) | |
tree | a19b6eda696bb90b72411c55dc0009ba05206669 /source/blender/editors/interface | |
parent | 8f49299134b504a59558aad8e66a81ae3c6c9748 (diff) |
Fix recently added drag events closing menus
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 3abaa1d88eb..6dcd7547bf5 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -3763,7 +3763,7 @@ static int ui_do_but_BUT( button_activate_state(C, but, BUTTON_STATE_WAIT_RELEASE); return WM_UI_HANDLER_BREAK; } - else if (event->type == LEFTMOUSE && but->block->handle) { + else if (event->type == LEFTMOUSE && event->val == KM_RELEASE && but->block->handle) { /* regular buttons will be 'UI_SELECT', menu items 'UI_ACTIVE' */ if (!(but->flag & (UI_SELECT | UI_ACTIVE))) data->cancel = true; |