align menu text to the left when displayed in a panel.

This commit is contained in:
2010-06-27 19:10:36 +00:00
parent 003d69f9d4
commit 1a59eb21a9

View File

@@ -1296,8 +1296,10 @@ static void ui_item_menu(uiLayout *layout, char *name, int icon, uiMenuCreateFun
if(layout->root->type == UI_LAYOUT_HEADER)
uiBlockSetEmboss(block, UI_EMBOSS);
else if(layout->root->type == UI_LAYOUT_PANEL)
else if(layout->root->type == UI_LAYOUT_PANEL) {
but->type= MENU;
but->flag |= UI_TEXT_LEFT;
}
}
void uiItemM(uiLayout *layout, bContext *C, char *menuname, char *name, int icon)