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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-05-20 13:52:02 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-05-20 13:52:02 +0400
commitf1286b15a3ce11c1b85b7d387fb7f3e1a243bff5 (patch)
treedd6b6b3bab836dbe069b08682607224dbdcf25cb /source/blender/makesrna/intern/rna_internal_types.h
parentd80911b8675582dca46ce78c17d5434b66a27f18 (diff)
RNA:
* Any Struct can now have ID properties, by creating a callback function to create/return an IDProperty. * Wrapped PoseChannel ID properties. * Note there is still no way to create ID Properties in 2.5, though the callback to get/create the initial group is now exposed through RNA_struct_idproperties.
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal_types.h')
-rw-r--r--source/blender/makesrna/intern/rna_internal_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_internal_types.h b/source/blender/makesrna/intern/rna_internal_types.h
index 50a4db8e158..f7292bdce48 100644
--- a/source/blender/makesrna/intern/rna_internal_types.h
+++ b/source/blender/makesrna/intern/rna_internal_types.h
@@ -36,6 +36,7 @@ struct FunctionRNA;
struct ReportList;
struct CollectionPropertyIterator;
struct bContext;
+struct IDProperty;
#define RNA_MAX_ARRAY 32
@@ -43,6 +44,7 @@ struct bContext;
typedef void (*UpdateFunc)(struct bContext *C, struct PointerRNA *ptr);
typedef int (*EditableFunc)(struct PointerRNA *ptr);
+typedef struct IDProperty* (*IDPropertiesFunc)(struct PointerRNA *ptr, int create);
typedef struct StructRNA *(*StructRefineFunc)(struct PointerRNA *ptr);
typedef char *(*StructPathFunc)(struct PointerRNA *ptr);
@@ -287,6 +289,9 @@ struct StructRNA {
StructRegisterFunc reg;
StructUnregisterFunc unreg;
+ /* callback to get id properties */
+ IDPropertiesFunc idproperties;
+
/* functions of this struct */
ListBase functions;
};