diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-16 08:04:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-16 08:08:49 +0300 |
commit | 919558854d624f5db40acfa9f5674ac8c94873b6 (patch) | |
tree | 99d5d47119ccbd1f02fb0e04adbcdd177ceb1a8e /source/blender/makesdna | |
parent | 43b08d05786f83797d04e5d0f777ae9b888807f9 (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')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 7 |
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; |