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:
authorCampbell Barton <ideasman42@gmail.com>2018-02-23 04:50:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-23 04:59:55 +0300
commitf36c803e55983ad30b032da2a775752eb4491fdc (patch)
treec9e01d297ad87322dfa1c7ac0e533d9ecf8363e2 /source/blender/makesdna/DNA_windowmanager_types.h
parentdd77e4515159187cf188706d53c6769e62346a21 (diff)
WM: add WM_keymap_poll function
Wrapps keymap poll, no functional changes.
Diffstat (limited to 'source/blender/makesdna/DNA_windowmanager_types.h')
-rw-r--r--source/blender/makesdna/DNA_windowmanager_types.h6
1 files changed, 4 insertions, 2 deletions
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 */