HI,
I am using Blender 2.56 SVN Version 34451.
Calling the Call Menu (CTRL+SHIFT+O) from the spacebar/search menu while over the 3D Viewport results in an error message being output to Blenders console but no popup menu.
Where as doing SHIFT+CTRL+O at the keyboard while over the 3D viewport results the popup menu being produced.
Description
Event Timeline
Hey Cam,
I noticed there's a WM_OT_call_menu() operator to allow _MT_ menus to open via a hotkey.
Although it works, it does give strange results for search or operator redos etc. Maybe it's better design to add a new menu handler?
I can work this if you're ok
Agree having this as an operator is not ideal design, I added this early on when operators where being added just for menu access.
FOO_OT_bar & FOO_OT_bar_menu.
Even so, meny operators are only useful in specific cases and don't make sense to call from the search menu, we could also just flag operators not to show in the search and close this bug.
The tradeoff is an alternate way to call menus needs api access and keymap save load support.
check maya.py
kmi = km.items.new('wm.call_menu', 'A', 'PRESS', shift=True)
kmi.properties.name = 'INFO_MT_add'
I'm not sure its worth the effort since now its simple that operators handle keys, but if you like to add a better design thats fine.
OK good point; hiding fom search might be good idea too, we have a couple of other operators that only work for internal usage.
Will make a note on my own todo for when operator maintenance happens. We can aslo consider it nicer to have a menu definition like "open recent" be a distinct operator, with properties (file names). What this maya py is doing... no idea, need investigation time :)
Terry: I'll close the report now, there's no unwanted code here, more of WIP and checks for nicer solutions. :)