diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 23:09:09 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 23:09:19 +0300 |
commit | 744eb1172e3ba16af21813de6c1e772490a68b91 (patch) | |
tree | fface9d17650558d425c2d420855a58ab53bbaa9 /source/blender/editors/interface/interface_ops.c | |
parent | b78a439e9071f83baf296d52c0c1a458aecd2938 (diff) |
Fix T80195: crash when invoking tooltips on MacOS
Problem introduced in rBadd48c007428.
`UI_but_string_info_get` can change the value of the args.
Diffstat (limited to 'source/blender/editors/interface/interface_ops.c')
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 82e6e01056c..d6919fb4de7 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -1474,16 +1474,16 @@ static int edittranslation_exec(bContext *C, wmOperator *op) const char *root = U.i18ndir; const char *uilng = BLT_lang_get(); - const uiStringInfo but_label = {BUT_GET_LABEL, NULL}; - const uiStringInfo rna_label = {BUT_GET_RNA_LABEL, NULL}; - const uiStringInfo enum_label = {BUT_GET_RNAENUM_LABEL, NULL}; - const uiStringInfo but_tip = {BUT_GET_TIP, NULL}; - const uiStringInfo rna_tip = {BUT_GET_RNA_TIP, NULL}; - const uiStringInfo enum_tip = {BUT_GET_RNAENUM_TIP, NULL}; - const uiStringInfo rna_struct = {BUT_GET_RNASTRUCT_IDENTIFIER, NULL}; - const uiStringInfo rna_prop = {BUT_GET_RNAPROP_IDENTIFIER, NULL}; - const uiStringInfo rna_enum = {BUT_GET_RNAENUM_IDENTIFIER, NULL}; - const uiStringInfo rna_ctxt = {BUT_GET_RNA_LABEL_CONTEXT, NULL}; + uiStringInfo but_label = {BUT_GET_LABEL, NULL}; + uiStringInfo rna_label = {BUT_GET_RNA_LABEL, NULL}; + uiStringInfo enum_label = {BUT_GET_RNAENUM_LABEL, NULL}; + uiStringInfo but_tip = {BUT_GET_TIP, NULL}; + uiStringInfo rna_tip = {BUT_GET_RNA_TIP, NULL}; + uiStringInfo enum_tip = {BUT_GET_RNAENUM_TIP, NULL}; + uiStringInfo rna_struct = {BUT_GET_RNASTRUCT_IDENTIFIER, NULL}; + uiStringInfo rna_prop = {BUT_GET_RNAPROP_IDENTIFIER, NULL}; + uiStringInfo rna_enum = {BUT_GET_RNAENUM_IDENTIFIER, NULL}; + uiStringInfo rna_ctxt = {BUT_GET_RNA_LABEL_CONTEXT, NULL}; if (!BLI_is_dir(root)) { BKE_report(op->reports, |