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>2010-08-31 15:31:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-31 15:31:21 +0400
commitdfb8c5974e6f937c3404d0dd59f0e6424de455db (patch)
tree736b1fce3378f7fdea6559a3dcda90f7fe368bfc /source/blender/makesrna/RNA_types.h
parent9a290b39c73d915d800860fa0d52ec7f036ec89e (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.h8
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 {