Fix #35715: incorrect shortcut shown for some menus after recent code refactoring.

This commit is contained in:
Brecht Van Lommel
2013-06-12 20:47:46 +00:00
parent f4dc0fa6c9
commit 69e7fb6091

View File

@@ -1752,7 +1752,7 @@ void uiItemMenuEnumO(uiLayout *layout, bContext *C, const char *opname, const ch
if (ot->prop &&
WM_key_event_operator_string(C, ot->idname, layout->root->opcontext, NULL, false, keybuf, sizeof(keybuf)))
{
namestr += BLI_snprintf(namestr, sizeof(namestr_buf) - (namestr - namestr_buf), "|%s", name);
namestr += BLI_snprintf(namestr, sizeof(namestr_buf) - (namestr - namestr_buf), "|%s", keybuf);
}
}