diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-14 07:30:11 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-14 07:30:11 +0300 |
commit | b5a5c24396a74ef48dc310158d951e058c769aad (patch) | |
tree | c05732ad0942797197d79988cf579367f42f43c7 /source/blender/sequencer/intern | |
parent | 0bd6b3e5a025830b44c56ef499e845ac2f307948 (diff) |
Cleanup: redundant function calls
Diffstat (limited to 'source/blender/sequencer/intern')
-rw-r--r-- | source/blender/sequencer/intern/image_cache.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/sequencer/intern/image_cache.c b/source/blender/sequencer/intern/image_cache.c index e097de237f2..47306dbbc6c 100644 --- a/source/blender/sequencer/intern/image_cache.c +++ b/source/blender/sequencer/intern/image_cache.c @@ -640,13 +640,8 @@ void seq_cache_cleanup_sequence(Scene *scene, int range_end = SEQ_time_right_handle_frame_get(seq_changed); if (!force_seq_changed_range) { - if (SEQ_time_left_handle_frame_get(seq) > range_start) { - range_start = SEQ_time_left_handle_frame_get(seq); - } - - if (SEQ_time_right_handle_frame_get(seq) < range_end) { - range_end = SEQ_time_right_handle_frame_get(seq); - } + range_start = max_ii(range_start, SEQ_time_left_handle_frame_get(seq)); + range_end = min_ii(range_end, SEQ_time_right_handle_frame_get(seq)); } int invalidate_composite = invalidate_types & SEQ_CACHE_STORE_FINAL_OUT; |