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>2021-04-16 08:04:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-16 08:08:49 +0300
commit919558854d624f5db40acfa9f5674ac8c94873b6 (patch)
tree99d5d47119ccbd1f02fb0e04adbcdd177ceb1a8e /source/blender/makesdna/DNA_windowmanager_types.h
parent43b08d05786f83797d04e5d0f777ae9b888807f9 (diff)
Fix T65064: Keymaps items controlling dynamic enums fail to export
Keymap UI and import/export could depend on the current context for dynamic enum's. Use STRUCT_NO_CONTEXT_WITHOUT_OWNER_ID for OperatorProperties.
Diffstat (limited to 'source/blender/makesdna/DNA_windowmanager_types.h')
-rw-r--r--source/blender/makesdna/DNA_windowmanager_types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h
index 68d69a671ba..130b308f224 100644
--- a/source/blender/makesdna/DNA_windowmanager_types.h
+++ b/source/blender/makesdna/DNA_windowmanager_types.h
@@ -374,7 +374,12 @@ typedef struct wmKeyMapItem {
/** Unique identifier. Positive for kmi that override builtins, negative otherwise. */
short id;
char _pad[2];
- /** Rna pointer to access properties. */
+ /**
+ * RNA pointer to access properties.
+ *
+ * \note The `ptr.owner_id` value must be NULL, as a signal not to use the context
+ * when running property callbacks such as ENUM item functions.
+ */
struct PointerRNA *ptr;
} wmKeyMapItem;