diff options
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 931a4faa1c0..2154ac4a7f6 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -4241,7 +4241,7 @@ static uiBut *ui_def_but_operator_ptr(uiBlock *block, if (!str) { if (ot && ot->srna) { - str = RNA_struct_ui_name(ot->srna); + str = WM_operatortype_name(ot, NULL); } else { str = ""; @@ -6392,7 +6392,7 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...) } else if (but->optype) { if (type == BUT_GET_RNA_LABEL) { - tmp = BLI_strdup(RNA_struct_ui_name(but->optype->srna)); + tmp = BLI_strdup(WM_operatortype_name(but->optype, NULL)); } else { const char *t = RNA_struct_ui_description(but->optype->srna); |