diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-19 04:30:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-19 04:35:45 +0400 |
commit | 64664541b696998e3b12bfcd43fa9cc892d1e758 (patch) | |
tree | ad1d45e327f004ccf4fe4c55e846f35ff43fb33a /source/blender/makesrna/intern/rna_access.c | |
parent | 2a9e33fba56c0d99aa224c91860be25783363ad5 (diff) |
Fix T38706: dropdown labels in popups not updating
Caused by own recent changes to menu handling
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 0ea55a08d75..4bb04b792ef 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1437,6 +1437,19 @@ bool RNA_property_enum_name(bContext *C, PointerRNA *ptr, PropertyRNA *prop, con return false; } +bool RNA_property_enum_name_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **name) +{ + bool result; + + result = RNA_property_enum_name(C, ptr, prop, value, name); + + if (result) { + *name = BLF_pgettext(prop->translation_context, *name); + } + + return result; +} + int RNA_property_enum_bitflag_identifiers(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **identifier) { |