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>2009-11-16 22:03:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-16 22:03:40 +0300
commit578950c97724d2869f1fa7959b39a260cd723717 (patch)
treecb7617ce9dde194ddd575961474cd40e8ac23b22 /source/blender/makesrna/RNA_access.h
parent66dfaabb9dd385b5b29c0b91874d1a4755e6ffe0 (diff)
ID property access from python for pose channels, bones and any ID objects.
The advantage with this is that global property definitions are not needed to add a property to an object. to avoid confusion these are accessed like a dictionary (closely matching how the BGE accesses properties) ob["mySetting"] = 1.0 bone["foo"] = {"one":1, "two":2.1, "three":"Three"} if "foo" in bone: print("prop found...") At the moment these can also be accessed as attributes, will be changed shortly. eg. bone.foo == bone["foo"]
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r--source/blender/makesrna/RNA_access.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index 19c569f7d2a..64e9d62a839 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -583,6 +583,8 @@ void *RNA_struct_blender_type_get(StructRNA *srna);
void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type);
struct IDProperty *RNA_struct_idproperties(PointerRNA *ptr, int create);
+int RNA_struct_idproperties_check(PointerRNA *ptr);
+
PropertyRNA *RNA_struct_find_property(PointerRNA *ptr, const char *identifier);
const struct ListBase *RNA_struct_defined_properties(StructRNA *srna);