diff options
author | Joseph Eagar <joeedh@gmail.com> | 2007-04-20 02:49:48 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2007-04-20 02:49:48 +0400 |
commit | 9c366833738af1565bc24aa5c2b995bb9320fcd3 (patch) | |
tree | eaa3e3ce0c40c4cfbc0e8deaa3ec50f9019eb342 /source/blender/blenkernel/intern | |
parent | 60b3268c32fbc8a908ffac76b45966da43373c3e (diff) |
=ID Properties bugfix=
The array resizing function, meant to be used with strings,
didn't work. This is because the id property size table
had the wrong value for strings.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/idprop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c index ba5332d5dab..d92f7ed0096 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -47,13 +47,15 @@ #define BSTR_EQ(a, b) (*(a) == *(b) && !strcmp(a, b)) /* IDPropertyTemplate is a union in DNA_ID.h */ + +/*local size table.*/ static char idp_size_table[] = { - 0, /*strings don't have fixed sizes :)*/ + 1, /*strings*/ sizeof(int), sizeof(float), sizeof(float)*3, /*Vector type*/ sizeof(float)*16, /*Matrix type, we allocate max 4x4 even if in 3x3 mode*/ - 0, /*arrays don't have a fixed size either :)*/ + 0, /*arrays don't have a fixed size*/ sizeof(ListBase), /*Group type*/ sizeof(void*) }; |