diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 20:42:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 20:42:44 +0300 |
commit | e12fe32febb9f64877879ec98da7ffc4ed60f96e (patch) | |
tree | a72dae2d6fc6ac4b8a30def52932cd2fba71e8d9 /source/blender/makesrna/intern/rna_rna.c | |
parent | c1d0f9179d4972eeb85fc8c5e182708ab7385930 (diff) |
documentat & cross reference collection types
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_rna.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c index 29a95c99851..f8109b9794d 100644 --- a/source/blender/makesrna/intern/rna_rna.c +++ b/source/blender/makesrna/intern/rna_rna.c @@ -406,6 +406,13 @@ static int rna_Property_subtype_get(PointerRNA *ptr) return prop->subtype; } +static PointerRNA rna_Property_srna_get(PointerRNA *ptr) +{ + PropertyRNA *prop= (PropertyRNA*)ptr->data; + rna_idproperty_check(&prop, ptr); + return rna_pointer_inherit_refine(ptr, &RNA_Struct, prop->srna); +} + static int rna_Property_unit_get(PointerRNA *ptr) { PropertyRNA *prop= (PropertyRNA*)ptr->data; @@ -900,6 +907,12 @@ static void rna_def_property(BlenderRNA *brna) RNA_def_property_enum_funcs(prop, "rna_Property_subtype_get", NULL, NULL); RNA_def_property_ui_text(prop, "Subtype", "Semantic interpretation of the property."); + prop= RNA_def_property(srna, "srna", PROP_POINTER, PROP_NONE); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_struct_type(prop, "Struct"); + RNA_def_property_pointer_funcs(prop, "rna_Property_srna_get", NULL, NULL); + RNA_def_property_ui_text(prop, "Base", "Struct definition used for properties assigned to this item."); + prop= RNA_def_property(srna, "unit", PROP_ENUM, PROP_NONE); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_enum_items(prop, unit_items); |