Animation: fix frame snapping for the time extend transformation mode. #116542

Merged
Alexander Gavrilov merged 1 commits from angavrilov/blender:pr-keyframe-extend-snap into main 2024-01-08 14:19:05 +01:00
1 changed files with 7 additions and 1 deletions

View File

@ -174,7 +174,13 @@ bool transformModeUseSnap(const TransInfo *t)
if (t->mode == TFM_RESIZE) {
return (ts->snap_transform_mode_flag & SCE_SNAP_TRANSFORM_MODE_SCALE) != 0;
}
if (ELEM(t->mode, TFM_VERT_SLIDE, TFM_EDGE_SLIDE, TFM_SEQ_SLIDE, TFM_TIME_TRANSLATE)) {
if (ELEM(t->mode,
TFM_VERT_SLIDE,
TFM_EDGE_SLIDE,
TFM_SEQ_SLIDE,
TFM_TIME_TRANSLATE,
TFM_TIME_EXTEND))
{
return true;
}