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>2012-04-14 06:48:56 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-14 06:48:56 +0400
commit289f627f6335a1c9d2aabf17bfc11ceb8ce97c37 (patch)
tree5cc5b6f367aa368fe50f88d924c3394be0461e38 /source/blender/makesdna/DNA_key_types.h
parentc8a1ef78c098d3aafbd205c28ed57408e83adbea (diff)
code cleanup: when extending name length Key.elemstr was incorrectly extended to 64 chars, added comment and set back to original length.
Diffstat (limited to 'source/blender/makesdna/DNA_key_types.h')
-rw-r--r--source/blender/makesdna/DNA_key_types.h5
1 files changed, 4 insertions, 1 deletions
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;