I18n: fix popup menus context
When calling `wm.call_menu_pie` and `wm.call_menu`, the menu context was ignored when showing its name in the header or pie menu center. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D16195
This commit is contained in:
parent
9df9397ae8
commit
9b2d682394
|
@ -222,7 +222,7 @@ int UI_pie_menu_invoke(struct bContext *C, const char *idname, const wmEvent *ev
|
|||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
}
|
||||
|
||||
pie = UI_pie_menu_begin(C, IFACE_(mt->label), ICON_NONE, event);
|
||||
pie = UI_pie_menu_begin(C, CTX_IFACE_(mt->translation_context, mt->label), ICON_NONE, event);
|
||||
layout = UI_pie_menu_layout(pie);
|
||||
|
||||
UI_menutype_draw(C, mt, layout);
|
||||
|
|
|
@ -559,7 +559,7 @@ int UI_popup_menu_invoke(bContext *C, const char *idname, ReportList *reports)
|
|||
return (OPERATOR_CANCELLED | OPERATOR_PASS_THROUGH);
|
||||
}
|
||||
|
||||
pup = UI_popup_menu_begin(C, IFACE_(mt->label), ICON_NONE);
|
||||
pup = UI_popup_menu_begin(C, CTX_IFACE_(mt->translation_context, mt->label), ICON_NONE);
|
||||
layout = UI_popup_menu_layout(pup);
|
||||
|
||||
UI_menutype_draw(C, mt, layout);
|
||||
|
|
Loading…
Reference in New Issue