diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_access_internal.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_access_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access_internal.h b/source/blender/makesrna/intern/rna_access_internal.h index 73407123863..9f1be5bbd67 100644 --- a/source/blender/makesrna/intern/rna_access_internal.h +++ b/source/blender/makesrna/intern/rna_access_internal.h @@ -27,6 +27,13 @@ struct IDProperty; struct PropertyRNAOrID; +/** + * This function initializes a #PropertyRNAOrID with all required info, from a given #PropertyRNA + * and #PointerRNA data. It deals properly with the three cases + * (static RNA, runtime RNA, and #IDProperty). + * \warning given `ptr` #PointerRNA is assumed to be a valid data one here, calling code is + * responsible to ensure that. + */ void rna_property_rna_or_id_get(PropertyRNA *prop, PointerRNA *ptr, PropertyRNAOrID *r_prop_rna_or_id); |