diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-05-26 15:38:24 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-05-26 15:38:24 +0300 |
commit | a23fbc71a1886e9f83fd1d6782050d5a8c356d13 (patch) | |
tree | 045e378fa8a9d086ef3190a7359aff7fca37e00e /source/blender/editors | |
parent | a64cb4185e2a6695d7fe12637fd9b624714fe75e (diff) |
Cleanup, add comment for old code.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 4179da9f88a..5c8b259f0a3 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -8023,7 +8023,8 @@ static int ui_handle_button_event(bContext *C, const wmEvent *event, uiBut *but) uiBut *but_other = ui_but_find_mouse_over(ar, event); bool exit = false; - if ((!ui_block_is_menu(block) || ui_block_is_pie_menu(but->block)) && + /* always deactivate button for pie menus, else moving to blank space will leave activated */ + if ((!ui_block_is_menu(block) || ui_block_is_pie_menu(block)) && !ui_but_contains_point_px(ar, but, event->x, event->y)) { exit = true; |