From 6bad063298bf276e4177991e9065091148bb6f0c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 9 Feb 2014 17:31:02 +1100 Subject: RNA: add RNA_enum_from_identifier, RNA_enum_from_value search functions also fix leak in RNA_enum_is_equal --- source/blender/makesrna/RNA_access.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesrna/RNA_access.h') 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); -- cgit v1.2.3