Fix: Show modal keymap for operators called inside macros #108027
|
@ -302,21 +302,8 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[UI_MAX_
|
|||
const char *str_dir = (snode->insert_ofs_dir == SNODE_INSERTOFS_DIR_RIGHT) ?
|
||||
TIP_("right") :
|
||||
TIP_("left");
|
||||
char str_dir_km[64];
|
||||
WM_modalkeymap_items_to_string(
|
||||
t->keymap, TFM_MODAL_INSERTOFS_TOGGLE_DIR, true, str_dir_km, sizeof(str_dir_km));
|
||||
ofs += BLI_snprintf_rlen(str,
|
||||
UI_MAX_DRAW_STR,
|
||||
TIP_("%s: Toggle auto-offset direction (%s)"),
|
||||
str_dir_km,
|
||||
str_dir);
|
||||
ofs += BLI_snprintf_rlen(str, UI_MAX_DRAW_STR, TIP_("Auto-offset direction: %s"), str_dir);
|
||||
}
|
||||
|
||||
char str_attach_km[64];
|
||||
WM_modalkeymap_items_to_string(
|
||||
t->keymap, TFM_MODAL_NODE_ATTACH_OFF, true, str_attach_km, sizeof(str_attach_km));
|
||||
ofs += BLI_snprintf_rlen(
|
||||
str + ofs, UI_MAX_DRAW_STR - ofs, TIP_(", %s: Toggle auto-attach"), str_attach_km);
|
||||
}
|
||||
else {
|
||||
if (t->flag & T_2D_EDIT) {
|
||||
|
|
Loading…
Reference in New Issue