fix/workaround for v3d object mode selector flipping direction

Allow menu functions to define their own direction, this way
menu_item_enum_opname_menu can keep menu flipping from 2.69.
This commit is contained in:
2014-02-12 10:29:15 +11:00
parent 18a8d88923
commit bfd0b582ca
4 changed files with 17 additions and 7 deletions

View File

@@ -1793,6 +1793,9 @@ static void menu_item_enum_opname_menu(bContext *UNUSED(C), uiLayout *layout, vo
uiLayoutSetOperatorContext(layout, lvl->opcontext);
uiItemsEnumO(layout, lvl->opname, lvl->propname);
/* override default, needed since this was assumed pre 2.70 */
uiBlockSetDirection(layout->root->block, UI_DOWN);
}
void uiItemMenuEnumO(uiLayout *layout, bContext *C, const char *opname, const char *propname, const char *name, int icon)