tweak to recent commit, don't show keymap in menu tooltips.

This commit is contained in:
2013-06-02 15:58:43 +00:00
parent 732c566f2f
commit 7068a5eba7
2 changed files with 6 additions and 4 deletions

View File

@@ -4091,9 +4091,11 @@ void uiButGetStrInfo(bContext *C, uiBut *but, ...)
}
}
else if (type == BUT_GET_OP_KEYMAP) {
char buf[128];
if (ui_but_event_operator_string(C, but, buf, sizeof(buf))) {
tmp = BLI_strdup(buf);
if (!ui_block_is_menu(but->block)) {
char buf[128];
if (ui_but_event_operator_string(C, but, buf, sizeof(buf))) {
tmp = BLI_strdup(buf);
}
}
}