diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-16 03:24:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-16 06:54:41 +0300 |
commit | f54b239269f726be38da52052951bfb7cb9e7e0e (patch) | |
tree | 7688ea72776d1999fd8f6897830588cbdcce42d2 /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | 77ff9a2006607893032f709090ea17b944f16aff (diff) |
Keymap: add support for key-config preferences
This is needed for keymaps to define their own options,
which can include left/right mouse select.
This can also help to us to provide popular keymap tweaks as options,
so users can easily fit blender to their workflow with well supported
adjustments which don't give the overhead of having to maintain
your own keymap, which become out-dated when operators change.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 52f609700b3..e6114b44221 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -70,6 +70,7 @@ #include "BKE_node.h" #include "BKE_report.h" #include "BKE_screen.h" +#include "BKE_keyconfig.h" #include "BKE_addon.h" #include "BKE_appdir.h" @@ -207,6 +208,7 @@ void WM_init(bContext *C, int argc, const char **argv) GHOST_CreateSystemPaths(); BKE_addon_pref_type_init(); + BKE_keyconfig_pref_type_init(); wm_operatortype_init(); wm_operatortypes_register(); @@ -459,7 +461,10 @@ void WM_exit_ext(bContext *C, const bool do_python) } WM_paneltype_clear(); + BKE_addon_pref_type_free(); + BKE_keyconfig_pref_type_free(); + wm_operatortype_free(); wm_dropbox_free(); WM_menutype_free(); |