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>2014-02-09 10:31:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-09 10:31:02 +0400
commit6bad063298bf276e4177991e9065091148bb6f0c (patch)
tree31e7dcc82add0c54fc825500b8e37b9d4ed5c7ca /source/blender/makesrna/RNA_access.h
parentb105d2ac7fbccd3998c9a01c297edc8ef9fce4cb (diff)
RNA: add RNA_enum_from_identifier, RNA_enum_from_value search functions
also fix leak in RNA_enum_is_equal
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 4d21f2eb95f..07c7d3e58c3 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -783,6 +783,8 @@ bool RNA_enum_identifier(EnumPropertyItem *item, const int value, const char **i
int RNA_enum_bitflag_identifiers(EnumPropertyItem *item, const int value, const char **identifier);
bool RNA_enum_name(EnumPropertyItem *item, const int value, const char **r_name);
bool RNA_enum_description(EnumPropertyItem *item, const int value, const char **description);
+int RNA_enum_from_value(EnumPropertyItem *item, const int value);
+int RNA_enum_from_identifier(EnumPropertyItem *item, const char *identifier);
void RNA_property_enum_items(struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, EnumPropertyItem **item,
int *r_totitem, bool *r_free);