diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-31 15:31:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-31 15:31:21 +0400 |
commit | dfb8c5974e6f937c3404d0dd59f0e6424de455db (patch) | |
tree | 736b1fce3378f7fdea6559a3dcda90f7fe368bfc /source/blender/makesrna/intern/rna_define.c | |
parent | 9a290b39c73d915d800860fa0d52ec7f036ec89e (diff) |
rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
Diffstat (limited to 'source/blender/makesrna/intern/rna_define.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index 0ac77382c04..a1c17ff02c9 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -2525,7 +2525,7 @@ int rna_parameter_size_alloc(PropertyRNA *parm) int size = rna_parameter_size(parm); if (parm->flag & PROP_DYNAMIC) - size+= sizeof(int); + size+= sizeof(((ParameterDynAlloc *)NULL)->array_tot); return size; } |