From 9c366833738af1565bc24aa5c2b995bb9320fcd3 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Thu, 19 Apr 2007 22:49:48 +0000 Subject: =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. --- source/blender/blenkernel/intern/idprop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/idprop.c') 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*) }; -- cgit v1.2.3