VSE: Clarify why frame range is drawn differently than in other editors.

This commit is contained in:
Richard Antalik
2023-04-03 17:41:31 +02:00
parent 45f7e2b6ba
commit da6dfc2b43

View File

@@ -3277,6 +3277,9 @@ static int sequencer_set_range_to_strips_exec(bContext *C, wmOperator *op)
if (seq->flag & SELECT) {
selected = true;
sfra = min_ii(sfra, SEQ_time_left_handle_frame_get(scene, seq));
/* Offset of -1 is needed because in VSE every frame has width. Range from 1 to 1 is drawn
* as range 1 to 2, because 1 frame long strip starts at frame 1 and ends at frame 2.
* See #106480. */
efra = max_ii(efra, SEQ_time_right_handle_frame_get(scene, seq) - 1);
}
}