Fix T52466: Silence search for button_context menu type.
We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled. To be backported to 2.79
This commit is contained in:
parent
f09dee5aed
commit
980a8646d8
Notes:
blender-bot
2023-02-14 06:40:30 +01:00
Referenced by issue #52517, Offset edge error Referenced by issue #52466, Continuous error in the terminal when right clicking on buttons
|
@ -7065,7 +7065,7 @@ static bool ui_but_menu(bContext *C, uiBut *but)
|
|||
}
|
||||
uiItemFullO(layout, "UI_OT_edittranslation_init", NULL, ICON_NONE, NULL, WM_OP_INVOKE_DEFAULT, 0);
|
||||
|
||||
mt = WM_menutype_find("WM_MT_button_context", false);
|
||||
mt = WM_menutype_find("WM_MT_button_context", true);
|
||||
if (mt) {
|
||||
Menu menu = {NULL};
|
||||
menu.layout = uiLayoutColumn(layout, false);
|
||||
|
|
Loading…
Reference in New Issue