diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-25 21:40:08 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-04-25 21:40:08 +0400 |
commit | e22c52af164e848d1032b484c9a1db3ac9381164 (patch) | |
tree | cb96757b9f623d5c7af78faa859baaa864f63cc3 /source/blender/makesrna/intern/rna_access.c | |
parent | ed684977006c072d826127a253495b1d02f6f6e7 (diff) |
Fix [#34545] Render layer name is unwantedly translated in composite node editor
Some enums' items actually are generated from data (like the render layers of compo nodes), so they should not be translated. Added a PROP_ENUM_NO_TRANSLATE new RNA flag to tag those enums (only found those for nodes, but may be more of them around).
Also fix similar issue in main list of render layers (Py UI code! :P ).
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index cfdfbf4e687..7a0a91cc6e3 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1256,7 +1256,7 @@ void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA RNA_property_enum_items(C, ptr, prop, item, totitem, free); #ifdef WITH_INTERNATIONAL - { + if (!(prop->flag & PROP_ENUM_NO_TRANSLATE)) { int i; /* Note: Only do those tests once, and then use BLF_pgettext. */ int do_iface = BLF_translate_iface(); |