diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-08-23 16:09:50 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-08-23 16:09:50 +0300 |
commit | a77a1bcae759a585599ca813215e23654062dbaa (patch) | |
tree | 9fa56df9fc2f77acda72351a05c3f36224834db9 /source/blender/makesrna/intern/rna_access.c | |
parent | 37533cd6cb0fcd6e92906cfcec911330df27f52c (diff) | |
parent | efc9faef23fdbc3e3eb0d88ed096aa269a294f01 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index ada73157026..c0104b1472c 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -4080,6 +4080,20 @@ int RNA_property_collection_lookup_index(PointerRNA *ptr, return -1; } +bool RNA_property_collection_lookup_int_has_fn(PropertyRNA *prop) +{ + BLI_assert(RNA_property_type(prop) == PROP_COLLECTION); + CollectionPropertyRNA *cprop = (CollectionPropertyRNA *)rna_ensure_property(prop); + return cprop->lookupint != NULL; +} + +bool RNA_property_collection_lookup_string_has_fn(PropertyRNA *prop) +{ + BLI_assert(RNA_property_type(prop) == PROP_COLLECTION); + CollectionPropertyRNA *cprop = (CollectionPropertyRNA *)rna_ensure_property(prop); + return cprop->lookupstring != NULL; +} + int RNA_property_collection_lookup_int(PointerRNA *ptr, PropertyRNA *prop, int key, |