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:
authorDalai Felinto <dalai@blender.org>2021-09-15 18:10:38 +0300
committerDalai Felinto <dalai@blender.org>2021-09-16 17:11:41 +0300
commit73ed07648901c047887f2e8e94750a3eae9afb08 (patch)
treefcf5d0329caeecf0c5d445602c249a6cd018f263
parent867e6ffe88f830cbfa158de95dea7cbb155e3fdb (diff)
Hide empty keymap warnings when running a template
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c7
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) {