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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-04 16:50:15 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-04 19:26:02 +0300
commit0dbbc5aac7125475b0c0b2523892e7d3bae34b05 (patch)
treeeb76897c88b1f5830c17f25abf13093e3cc693b1 /source/blender/windowmanager/intern/wm_operator_type.c
parente388cd8bb4b5dd309de0e603e529ee99348e3b19 (diff)
Fix status bar and keymap editor showing Call Menu instead of menu name
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_type.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_type.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_type.c b/source/blender/windowmanager/intern/wm_operator_type.c
index 69f09162c74..1cec9848104 100644
--- a/source/blender/windowmanager/intern/wm_operator_type.c
+++ b/source/blender/windowmanager/intern/wm_operator_type.c
@@ -584,4 +584,14 @@ static void wm_operatortype_free_macro(wmOperatorType *ot)
BLI_freelistN(&ot->macro);
}
+const char *WM_operatortype_name(struct wmOperatorType *ot, struct PointerRNA *properties)
+{
+ if (ot->get_name && properties) {
+ return ot->get_name(ot, properties);
+ }
+ else {
+ return RNA_struct_ui_name(ot->srna);
+ }
+}
+
/** \} */