From 289f627f6335a1c9d2aabf17bfc11ceb8ce97c37 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 14 Apr 2012 02:48:56 +0000 Subject: code cleanup: when extending name length Key.elemstr was incorrectly extended to 64 chars, added comment and set back to original length. --- source/blender/makesdna/DNA_key_types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_key_types.h') diff --git a/source/blender/makesdna/DNA_key_types.h b/source/blender/makesdna/DNA_key_types.h index 26c42e402a3..e07fe6663ca 100644 --- a/source/blender/makesdna/DNA_key_types.h +++ b/source/blender/makesdna/DNA_key_types.h @@ -61,7 +61,10 @@ typedef struct Key { struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */ KeyBlock *refkey; - char elemstr[64]; /* MAX_NAME */ + /* this is not a regular string, although it is \0 terminated + * this is an array of (element_array_size, element_type) pairs + * (each one char) used for calculating shape key-blocks */ + char elemstr[32]; int elemsize; float curval DNA_DEPRECATED; -- cgit v1.2.3