diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-04 16:50:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-04 19:26:02 +0300 |
commit | 0dbbc5aac7125475b0c0b2523892e7d3bae34b05 (patch) | |
tree | eb76897c88b1f5830c17f25abf13093e3cc693b1 /source/blender/editors/interface | |
parent | e388cd8bb4b5dd309de0e603e529ee99348e3b19 (diff) |
Fix status bar and keymap editor showing Call Menu instead of menu name
Diffstat (limited to 'source/blender/editors/interface')
4 files changed, 7 insertions, 7 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); diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index b89767171ab..d4d7af3a374 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -1143,7 +1143,7 @@ static uiBut *uiItemFullO_ptr_ex(uiLayout *layout, if (!name) { if (ot && ot->srna && (flag & UI_ITEM_R_ICON_ONLY) == 0) { - name = RNA_struct_ui_name(ot->srna); + name = WM_operatortype_name(ot, NULL); } else { name = ""; @@ -3126,7 +3126,7 @@ void uiItemMenuEnumO_ptr(uiLayout *layout, BLI_assert(ot->srna != NULL); if (name == NULL) { - name = RNA_struct_ui_name(ot->srna); + name = WM_operatortype_name(ot, NULL); } if (layout->root->type == UI_LAYOUT_MENU && !icon) { diff --git a/source/blender/editors/interface/interface_region_hud.c b/source/blender/editors/interface/interface_region_hud.c index 362a1c8a22c..6d1b2baeff9 100644 --- a/source/blender/editors/interface/interface_region_hud.c +++ b/source/blender/editors/interface/interface_region_hud.c @@ -92,7 +92,7 @@ static bool hud_panel_operator_redo_poll(const bContext *C, PanelType *UNUSED(pt static void hud_panel_operator_redo_draw_header(const bContext *C, Panel *pa) { wmOperator *op = WM_operator_last_redo(C); - BLI_strncpy(pa->drawname, RNA_struct_ui_name(op->type->srna), sizeof(pa->drawname)); + BLI_strncpy(pa->drawname, WM_operatortype_name(op->type, op->ptr), sizeof(pa->drawname)); } static void hud_panel_operator_redo_draw(const bContext *C, Panel *pa) diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index b1d404e8ab4..5d25c778de1 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -2355,7 +2355,7 @@ void uiTemplateOperatorRedoProperties(uiLayout *layout, const bContext *C) /* Repeat button with operator name as text. */ uiItemFullO(layout, "SCREEN_OT_repeat_last", - RNA_struct_ui_name(op->type->srna), + WM_operatortype_name(op->type, op->ptr), ICON_NONE, NULL, WM_OP_INVOKE_DEFAULT, @@ -5916,7 +5916,7 @@ eAutoPropButsReturn uiTemplateOperatorPropertyButs(const bContext *C, } if (flag & UI_TEMPLATE_OP_PROPS_SHOW_TITLE) { - uiItemL(layout, RNA_struct_ui_name(op->type->srna), ICON_NONE); + uiItemL(layout, WM_operatortype_name(op->type, op->ptr), ICON_NONE); } /* menu */ |