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:
authorBastien Montagne <bastien@blender.org>2020-09-18 16:16:30 +0300
committerBastien Montagne <bastien@blender.org>2020-09-20 17:26:39 +0300
commit5e509a3aa9d1f14d3293da3b0cc72fb633d7773a (patch)
treee716b732269221d1245ea19c4c32093dbb01b347 /source/blender/makesrna/RNA_access.h
parent8afa42b05a260eb4b77327b296e19b24b74b123b (diff)
RNA access: Add utils to search a collection item from its name, and get both item pointer and its index in the collection.
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 7a72ba2dc14..38438f66a0f 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -1029,6 +1029,8 @@ int RNA_property_collection_lookup_string(PointerRNA *ptr,
PropertyRNA *prop,
const char *key,
PointerRNA *r_ptr);
+int RNA_property_collection_lookup_string_index(
+ PointerRNA *ptr, PropertyRNA *prop, const char *key, PointerRNA *r_ptr, int *r_index);
int RNA_property_collection_assign_int(PointerRNA *ptr,
PropertyRNA *prop,
const int key,