diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-10-04 20:50:13 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-10-04 22:24:09 +0300 |
commit | 76043bc3d62c5a23f182c2cf0521e787600bd0d7 (patch) | |
tree | 07848c26ba6582bcbcd49bd6313a7dfaccac1c98 /source/blender/editors/space_sequencer/sequencer_thumbnails.c | |
parent | d981418c8ce0016e1cd778f4ddaf558cb7b0e724 (diff) |
Cleanup: VSE code readability
Add function `SEQ_time_content_end_frame_get` to get content end frame.
New function is shorthand for
`SEQ_time_start_frame_get() + SEQ_time_strip_length_get()`.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_thumbnails.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_thumbnails.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_thumbnails.c b/source/blender/editors/space_sequencer/sequencer_thumbnails.c index 6f443d0353e..36f2aa87d9d 100644 --- a/source/blender/editors/space_sequencer/sequencer_thumbnails.c +++ b/source/blender/editors/space_sequencer/sequencer_thumbnails.c @@ -74,10 +74,11 @@ static bool check_seq_need_thumbnails(const Scene *scene, Sequence *seq, rctf *v if (!ELEM(seq->type, SEQ_TYPE_MOVIE, SEQ_TYPE_IMAGE)) { return false; } - if (min_ii(SEQ_time_left_handle_frame_get(scene, seq), seq->start) > view_area->xmax) { + if (min_ii(SEQ_time_left_handle_frame_get(scene, seq), SEQ_time_start_frame_get(seq)) > + view_area->xmax) { return false; } - if (max_ii(SEQ_time_right_handle_frame_get(scene, seq), seq->start + seq->len) < + if (max_ii(SEQ_time_right_handle_frame_get(scene, seq), SEQ_time_content_end_frame_get(scene, seq)) < view_area->xmin) { return false; } |