forked from bartvdbraak/blender
Fix #28389: UILayout.menu function didn't emboss menu button correct in the
3d view tools region.
This commit is contained in:
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)
|
||||
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->flag |= UI_TEXT_LEFT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user