From f36c803e55983ad30b032da2a775752eb4491fdc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 Feb 2018 12:50:56 +1100 Subject: WM: add WM_keymap_poll function Wrapps keymap poll, no functional changes. --- source/blender/makesdna/DNA_windowmanager_types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna/DNA_windowmanager_types.h') diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index cf8dbdd8c63..687a883f792 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -313,8 +313,10 @@ typedef struct wmKeyMap { short kmi_id; /* last kmi id */ /* runtime */ - int (*poll)(struct bContext *); /* verify if enabled in the current context */ - const void *modal_items; /* for modal, EnumPropertyItem for now */ + /** Verify if enabled in the current context, use #WM_keymap_poll instead of direct calls. */ + int (*poll)(struct bContext *); + /** For modal, #EnumPropertyItem for now. */ + const void *modal_items; } wmKeyMap; /* wmKeyMap.flag */ -- cgit v1.2.3