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:
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/intern/rna_access.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 4bb04b792ef..86ef2f1b74f 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1444,7 +1444,11 @@ bool RNA_property_enum_name_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA
result = RNA_property_enum_name(C, ptr, prop, value, name);
if (result) {
- *name = BLF_pgettext(prop->translation_context, *name);
+ if (!(prop->flag & PROP_ENUM_NO_TRANSLATE)) {
+ if (BLF_translate_iface()) {
+ *name = BLF_pgettext(prop->translation_context, *name);
+ }
+ }
}
return result;