Node Editor: show auto-attach status while moving
This was just giving the shortcut to toggle, but not giving the actual
status ("ON"/"OFF").
This was especially confusing in the following scenario:
- Alt-drag a node (to detach links)
- try to drop on a link (with Alt still held down) was not working
because the modal keymap would have actually toggled auto-attach to OFF
Pull Request: https://projects.blender.org/blender/blender/pulls/111739
This commit is contained in:
committed by
Philipp Oeser
parent
fde35b65d1
commit
e46b87f4b1
@@ -316,8 +316,11 @@ static void headerTranslation(TransInfo *t, const float vec[3], char str[UI_MAX_
|
||||
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);
|
||||
ofs += BLI_snprintf_rlen(str + ofs,
|
||||
UI_MAX_DRAW_STR - ofs,
|
||||
TIP_(", %s: Toggle auto-attach (%s)"),
|
||||
str_attach_km,
|
||||
WM_bool_as_string((t->modifiers & MOD_NODE_ATTACH) != 0));
|
||||
}
|
||||
else {
|
||||
if (t->flag & T_2D_EDIT) {
|
||||
|
||||
Reference in New Issue
Block a user