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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-02-16 19:53:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-02-16 19:53:44 +0400
commit251822126c5217e238a84818d10cde1da227c5ca (patch)
tree2405de4cb5778df9eed3579eb50f7b1553961372 /source/blender/makesrna/intern/rna_wm.c
parentec7498ce0bbaab14db49d1b45efbd528d443c0fb (diff)
Clear PROP_TRANSLATE flag for Macro Operator's bl_label as well.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c
index 41941334e4c..7e71d138513 100644
--- a/source/blender/makesrna/intern/rna_wm.c
+++ b/source/blender/makesrna/intern/rna_wm.c
@@ -1309,7 +1309,10 @@ static void rna_def_macro_operator(BlenderRNA *brna)
RNA_def_property_flag(prop, PROP_REGISTER|PROP_NEVER_CLAMP);
RNA_def_struct_name_property(srna, prop);
- prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_TRANSLATE);
+ /* menu's label indeed doesn't need PROP_TRANSLATE flag: translation of label happens in runtime
+ * when drawing panel and having this flag set will make runtime switching of language much more tricky
+ * because label will be stored translated */
+ prop= RNA_def_property(srna, "bl_label", PROP_STRING, PROP_PROP);
RNA_def_property_string_sdna(prop, NULL, "type->name");
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");