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.
This commit is contained in:
Germano Cavalcante
2024-04-17 12:21:13 -03:00
parent 6a21ff9154
commit 93e47ad9a8

View File

@@ -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;