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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-15 13:45:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-11-15 14:50:33 +0300
commit71fd7e610a6e4c6fabc9b8a12e5f56b698a542ae (patch)
treef641c40f0ea4e1a95eeb3db5077bec50a61d8b62 /source/blender/windowmanager
parent9a9ca5e40bd88a5444ca322d12c4544f659e5a29 (diff)
Keymaps: minor code refactor after adding tools to default preset.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 2685a1bfafd..4032f47eec2 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -267,10 +267,7 @@ wmKeyConfig *WM_keyconfig_new(wmWindowManager *wm, const char *idname, bool user
/* For default configuration, we need to keep keymap
* modal items and poll functions intact. */
for (wmKeyMap *km = keyconf->keymaps.first; km; km = km->next) {
- /* Tool system keymaps are not part of preset, so don't clear. */
- if (!(km->flag & KEYMAP_TOOL)) {
- WM_keymap_clear(km);
- }
+ WM_keymap_clear(km);
}
}
else {