Hide empty keymap warnings when running a template
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user