From 93e47ad9a8cede59552e12e8fc5fc98eccfb0d4e Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 17 Apr 2024 12:21:13 -0300 Subject: [PATCH] Fix #120744: Shrink/Fatten Even with Alt not working Continuation of 3d6bb6ce04 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/transform/transform.cc b/source/blender/editors/transform/transform.cc index f74d7ea0e94..4e23f7373c0 100644 --- a/source/blender/editors/transform/transform.cc +++ b/source/blender/editors/transform/transform.cc @@ -726,11 +726,11 @@ 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)) { + if (ELEM(t->mode, TFM_EDGE_SLIDE, TFM_VERT_SLIDE, TFM_SHRINKFATTEN)) { /* 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. */ + * #T_ALT_TRANSFORM is used by the operator. */ return false; } return t->vod != nullptr;