From 3d6bb6ce04adafdc54da04483fdedc758b3172ea Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 29 Feb 2024 20:50:09 -0300 Subject: [PATCH] Fix #118906: conflict with alt hotkey in Vert and Edge Slide operators This 'alt' hotkey is captured in the modal map `TFM_MODAL_PASSTHROUGH_NAVIGATE` in order to appear in the header. But this modal map is not necessary. --- source/blender/editors/transform/transform.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/editors/transform/transform.cc b/source/blender/editors/transform/transform.cc index d1bce428b2c..7188190f954 100644 --- a/source/blender/editors/transform/transform.cc +++ b/source/blender/editors/transform/transform.cc @@ -712,6 +712,13 @@ static bool transform_modal_item_poll(const wmOperator *op, int value) break; } case TFM_MODAL_PASSTHROUGH_NAVIGATE: + if (ELEM(t->mode, TFM_EDGE_SLIDE, TFM_VERT_SLIDE)) { + /* Returning `false` will not prevent the navigation from working, it will just not display + * the shortcut in the header. + * Return `false` here to prevent this modal item from affecting the state with + * #T_ALT_TRANSFORM used by the Edge and Vert Slide operators. */ + return false; + } return t->vod != nullptr; } return true;