diff options
author | Aleksandr Zinovev <roaoao@gmail.com> | 2017-07-27 10:13:40 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-07-27 13:28:16 +0300 |
commit | 72e228a155fef3b8c65bdc2d9d7f78c731c4c5c7 (patch) | |
tree | b3d48f8c23aa83afd2ea7f4065cf6932d7f63b4f /source/blender/editors/interface | |
parent | f8bd6adee29d49787299de779f89668ebd8a1bb4 (diff) |
Fix: use click style if a pie was spawned by release or click event
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 738ebfcc5c2..640673857df 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -2960,8 +2960,8 @@ uiPieMenu *UI_pie_menu_begin(struct bContext *C, const char *title, int icon, co pie->block_radial->puphash = ui_popup_menu_hash(title); pie->block_radial->flag |= UI_BLOCK_RADIAL; - /* if pie is spawned by a left click, it is always assumed to be click style */ - if (event->type == LEFTMOUSE) { + /* if pie is spawned by a left click, release or click event, it is always assumed to be click style */ + if (event->type == LEFTMOUSE || ELEM(event->val, KM_RELEASE, KM_CLICK)) { pie->block_radial->pie_data.flags |= UI_PIE_CLICK_STYLE; pie->block_radial->pie_data.event = EVENT_NONE; win->lock_pie_event = EVENT_NONE; |