diff options
author | Harley Acheson <harley> | 2019-01-04 17:12:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-04 17:27:51 +0300 |
commit | 4053ed022b078e48858472b9e1b0e12fdb360865 (patch) | |
tree | 296c96715a9c5692617e1703462c7fba28639c24 /source | |
parent | 86061520ec1180b4c0c59603aa36f0c7bf8933fc (diff) |
UI: fix incorrect collapse menu button alignment.
Differential Revision: https://developer.blender.org/D4151
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index e6c3d968a27..45c0498cda6 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2247,7 +2247,9 @@ static uiBut *ui_item_menu( } else if (icon) { but = uiDefIconMenuBut(block, func, arg, icon, 0, 0, w, h, tip); - UI_but_drawflag_enable(but, UI_BUT_ICON_LEFT); + if (force_menu) { + UI_but_drawflag_enable(but, UI_BUT_ICON_LEFT); + } } else { but = uiDefMenuBut(block, func, arg, name, 0, 0, w, h, tip); |