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/RNA_types.h | |
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/RNA_types.h')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 887069d6c00..5caae56010f 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -22,6 +22,8 @@ * ***** END GPL LICENSE BLOCK ***** */ +#include "BLO_sys_types.h" + #ifndef RNA_TYPES #define RNA_TYPES @@ -265,6 +267,12 @@ typedef struct ParameterIterator { int valid; } ParameterIterator; +/* mainly to avoid confusing casts */ +typedef struct ParameterDynAlloc { + intptr_t array_tot; /* important, this breaks when set to an int */ + void *array; +} ParameterDynAlloc; + /* Function */ typedef enum FunctionFlag { |