Fix #28404: certain keyboard shortcuts not shown in menus, e.g. move operators

in graph editor > channel menu. Problem was these did not inherit operator
execution context correctly.

Fix found by Sergey, also needed to fix logic operators which were not working
when invoked instead of executed.
This commit is contained in:
2011-09-05 17:57:04 +00:00
parent 419042af55
commit 76ddf6d2ee
3 changed files with 5 additions and 5 deletions

View File

@@ -1526,7 +1526,7 @@ static void menu_item_enum_opname_menu(bContext *UNUSED(C), uiLayout *layout, vo
{
MenuItemLevel *lvl= (MenuItemLevel*)(((uiBut*)arg)->func_argN);
uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN);
uiLayoutSetOperatorContext(layout, lvl->opcontext);
uiItemsEnumO(layout, lvl->opname, lvl->propname);
}