tweak to recent commit, don't show keymap in menu tooltips.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
/* should always be defined except for experemental cases */
|
||||
/* should always be defined except for experimental cases */
|
||||
#ifdef WITH_GUARDEDALLOC
|
||||
|
||||
/* Blame Microsoft for LLP64 and no inttypes.h, quick workaround needed: */
|
||||
|
||||
@@ -4091,11 +4091,13 @@ void uiButGetStrInfo(bContext *C, uiBut *but, ...)
|
||||
}
|
||||
}
|
||||
else if (type == BUT_GET_OP_KEYMAP) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
si->strinfo = tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user