Blender Git Loki

Git Commits -> Revision c46dcdf

Revision c46dcdf by Campbell Barton (master)
March 24, 2020, 02:41 (GMT)
UI: add menu search functionality to operator search menu

This has some advantages over operator search:

- Some operators need options set to be usefully accessed.
- Shows key bindings to access menus
(for actions that don't have key bindings themselves).
- Non operator actions such as check-boxes are also shown.
- Menu items can control execution context, using invoke or execute
where appropriate so we can control how the operator runs.

Part of the design task T74157.

This can be tested using the 'Experimental' preferences section
or selected in the key-map editor.

Commit Details:

Full Hash: c46dcdf8871e7404516a234087cfc4bf4e2794d0
Parent Commit: 94b8166
Lines Changed: +827, -71

16 Modified Paths:

/release/scripts/startup/bl_ui/space_topbar.py (+2, -1) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+36, -32) (Diff)
/source/blender/editors/include/UI_interface.h (+9, -2) (Diff)
/source/blender/editors/interface/interface.c (+11, -9) (Diff)
/source/blender/editors/interface/interface_handlers.c (+12, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_region_search.c (+50, -11) (Diff)
/source/blender/editors/interface/interface_templates.c (+650, -3) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/space_node/node_select.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+2, -2) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+4, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+40, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021