diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-05 06:01:04 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-05 06:01:04 +0300 |
commit | 02cf88464dd14621683299310bd11744eec0e916 (patch) | |
tree | c887e0594ab201a69bcf07fd57606a16ff7c2db7 /source/blender/makesdna | |
parent | 0b4627c5d66e7676ade8861086c04e37ab058f67 (diff) |
Macro used wrong length for idname (also use OP_MAX_TYPENAME more often so it doesn't blow up if changed)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 48d67714f15..0b2d0255f02 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -182,7 +182,7 @@ typedef struct wmOperatorTypeMacro { struct wmOperatorTypeMacro *next, *prev; /* operator id */ - char idname[MAX_ID_NAME]; + char idname[OP_MAX_TYPENAME]; /* rna pointer to access properties, like keymap */ struct IDProperty *properties; /* operator properties, assigned to ptr->data and can be written to a file */ struct PointerRNA *ptr; @@ -194,7 +194,7 @@ typedef struct wmKeyMapItem { struct wmKeyMapItem *next, *prev; /* operator */ - char idname[64]; /* used to retrieve operator type pointer */ + char idname[OP_MAX_TYPENAME]; /* used to retrieve operator type pointer */ IDProperty *properties; /* operator properties, assigned to ptr->data and can be written to a file */ /* modal */ @@ -267,7 +267,7 @@ typedef struct wmOperator { struct wmOperator *next, *prev; /* saved */ - char idname[64]; /* used to retrieve type pointer */ + char idname[OP_MAX_TYPENAME];/* used to retrieve type pointer */ IDProperty *properties; /* saved, user-settable properties */ /* runtime */ |