[Bf-blender-cvs] [73ed0764890] master: Hide empty keymap warnings when running a template
Dalai Felinto
noreply at git.blender.org
Thu Sep 16 16:11:57 CEST 2021
Commit: 73ed07648901c047887f2e8e94750a3eae9afb08
Author: Dalai Felinto
Date: Wed Sep 15 17:10:38 2021 +0200
Branches: master
https://developer.blender.org/rB73ed07648901c047887f2e8e94750a3eae9afb08
Hide empty keymap warnings when running a template
===================================================================
M source/blender/windowmanager/intern/wm_keymap.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list