diff options
author | Dalai Felinto <dalai@blender.org> | 2021-09-15 18:10:38 +0300 |
---|---|---|
committer | Dalai Felinto <dalai@blender.org> | 2021-09-16 17:11:41 +0300 |
commit | 73ed07648901c047887f2e8e94750a3eae9afb08 (patch) | |
tree | fcf5d0329caeecf0c5d445602c249a6cd018f263 /source/blender/windowmanager/intern/wm_keymap.c | |
parent | 867e6ffe88f830cbfa158de95dea7cbb155e3fdb (diff) |
Hide empty keymap warnings when running a template
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_keymap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c index 25bcf1967ea..f1fe3e89007 100644 --- a/source/blender/windowmanager/intern/wm_keymap.c +++ b/source/blender/windowmanager/intern/wm_keymap.c @@ -460,8 +460,11 @@ bool WM_keymap_poll(bContext *C, wmKeyMap *keymap) if (UNLIKELY(BLI_listbase_is_empty(&keymap->items))) { /* Empty key-maps may be missing more there may be a typo in the name. - * Warn early to avoid losing time investigating each case. */ - CLOG_WARN(WM_LOG_KEYMAPS, "empty keymap '%s'", keymap->idname); + * Warn early to avoid losing time investigating each case. + * When developing a customized Blender though you may want empty keymaps. */ + if (!U.app_template[0]) { + CLOG_WARN(WM_LOG_KEYMAPS, "empty keymap '%s'", keymap->idname); + } } if (keymap->poll != NULL) { |