Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-24 03:34:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-24 05:41:18 +0300
commitc46dcdf8871e7404516a234087cfc4bf4e2794d0 (patch)
treeca5f6d549a3294441a452ae04507e46360324bad /source/blender/makesdna
parent94b8166a8b0519aef76e8cb8d0c9a6035fe04baf (diff)
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index 30b4098c2bb..54470dc59fc 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -619,7 +619,9 @@ typedef struct UserDef_FileSpaceData {
typedef struct UserDef_Experimental {
char use_undo_speedup;
- char _pad0[7]; /* makesdna does not allow empty structs. */
+ char use_menu_search;
+ /** `makesdna` does not allow empty structs. */
+ char _pad0[6];
} UserDef_Experimental;
#define USER_EXPERIMENTAL_TEST(userdef, member) \