diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-17 21:44:06 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-17 21:44:06 +0300 |
commit | 623421d580277f6e1f5404c019d4f807cf1645e9 (patch) | |
tree | a12cb7f0e5fe180080b95b00f452dd555c8e190e /source/blender/makesdna/DNA_ID.h | |
parent | 6ea6edfa320d4ff582d6994cb7382816bef2ce7b (diff) |
RNA
* Added support for ID properties, mapped as follows:
* IDP Int = RNA Int
* IDP Float, Double = RNA Float
* IDP_String = RNA String
* IDP Group = RNA IDPropertyGroup Struct
* IDP_Array = RNA Array
* PropertyRNA and StructRNA are now defined private for the module,
to force external code to always use accessor functions.
Diffstat (limited to 'source/blender/makesdna/DNA_ID.h')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index ccf9becbce5..ea9f64cc26c 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -51,9 +51,9 @@ typedef struct IDPropertyData { typedef struct IDProperty { struct IDProperty *next, *prev; - char name[32]; char type, subtype; short flag; + char name[32]; int saved; /*saved is used to indicate if this struct has been saved yet. seemed like a good idea as a pad var was needed anyway :)*/ IDPropertyData data; /* note, alignment for 64 bits */ @@ -69,15 +69,16 @@ typedef struct IDProperty { #define DEFAULT_ALLOC_FOR_NULL_STRINGS 64 /*->type*/ -#define IDP_STRING 0 -#define IDP_INT 1 -#define IDP_FLOAT 2 -#define IDP_ARRAY 5 -#define IDP_GROUP 6 +#define IDP_STRING 0 +#define IDP_INT 1 +#define IDP_FLOAT 2 +#define IDP_ARRAY 5 +#define IDP_GROUP 6 /* the ID link property type hasn't been implemented yet, this will require some cleanup of blenkernel, most likely.*/ -#define IDP_ID 7 -#define IDP_DOUBLE 8 +#define IDP_ID 7 +#define IDP_DOUBLE 8 +#define IDP_NUMTYPES 9 /* add any future new id property types here.*/ |