Fix #28389: UILayout.menu function didn't emboss menu button correct in the

3d view tools region.
This commit is contained in:
Brecht Van Lommel 2011-09-05 15:55:53 +00:00
parent cc1c8268f7
commit 59dbd53e72

@ -1404,7 +1404,7 @@ static void ui_item_menu(uiLayout *layout, const char *name, int icon, uiMenuCre
if(layout->root->type == UI_LAYOUT_HEADER) if(layout->root->type == UI_LAYOUT_HEADER)
uiBlockSetEmboss(block, UI_EMBOSS); uiBlockSetEmboss(block, UI_EMBOSS);
else if(layout->root->type == UI_LAYOUT_PANEL) { else if(ELEM(layout->root->type, UI_LAYOUT_PANEL, UI_LAYOUT_TOOLBAR)) {
but->type= MENU; but->type= MENU;
but->flag |= UI_TEXT_LEFT; but->flag |= UI_TEXT_LEFT;
} }