UI: fix incorrect collapse menu button alignment.

Differential Revision: https://developer.blender.org/D4151
This commit is contained in:
Harley Acheson 2019-01-04 15:12:12 +01:00 committed by Brecht Van Lommel
parent 86061520ec
commit 4053ed022b
1 changed files with 3 additions and 1 deletions

View File

@ -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);