From 0dbbc5aac7125475b0c0b2523892e7d3bae34b05 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 4 Jun 2019 15:50:15 +0200 Subject: Fix status bar and keymap editor showing Call Menu instead of menu name --- source/blender/editors/interface/interface_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/interface/interface_layout.c') 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) { -- cgit v1.2.3