diff options
author | Harley Acheson <harley> | 2019-04-30 13:39:05 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-30 13:40:24 +0300 |
commit | 395fa5eb4c1c52d4ea133f7ac2b96dbd6beb7c18 (patch) | |
tree | 0d9e530fd185caa04e4bdba064e919b5af4d8f92 /source/blender/editors/interface/interface_query.c | |
parent | 80c3501d194969fbc2babe9096aa3b9221aa13fa (diff) |
Fix T63912: don't collapse menu separators for pie menus
Differential Revision: https://developer.blender.org/D4748
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r-- | source/blender/editors/interface/interface_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c index a2180e63efb..b0fd0cdc35f 100644 --- a/source/blender/editors/interface/interface_query.c +++ b/source/blender/editors/interface/interface_query.c @@ -475,7 +475,7 @@ bool UI_block_is_empty(const uiBlock *block) bool UI_block_can_add_separator(const uiBlock *block) { - if (ui_block_is_menu(block)) { + if (ui_block_is_menu(block) && !ui_block_is_pie_menu(block)) { const uiBut *but = block->buttons.last; return (but && !ELEM(but->type, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR)); } |