UI: Remove Menu Search Console Warning
Menu Search is showing a console warning whenever it can't find a menu to search. WM_menutype_find should be set to silent. Pull Request: https://projects.blender.org/blender/blender/pulls/113701
This commit is contained in:
committed by
Harley Acheson
parent
d625feadd8
commit
da2902120e
@@ -10779,7 +10779,7 @@ static int ui_handle_menu_event(bContext *C,
|
||||
{
|
||||
|
||||
/* Menu search if spacebar or SearchOnKeyPress. */
|
||||
MenuType *mt = WM_menutype_find(menu->menu_idname, false);
|
||||
MenuType *mt = WM_menutype_find(menu->menu_idname, true);
|
||||
if ((mt && bool(mt->flag & MenuTypeFlag::SearchOnKeyPress)) ||
|
||||
event->type == EVT_SPACEKEY) {
|
||||
if ((level != 0) && (but == nullptr || !menu->menu_idname[0])) {
|
||||
|
||||
Reference in New Issue
Block a user