diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-06-02 22:41:38 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-06-02 22:41:38 +0300 |
commit | 925df8ef26a353497c8088657a82b6b8545c67c1 (patch) | |
tree | 83dcc1f9fadaff90a3b7729b915bedfcda52a67d /source/blender/sequencer/SEQ_time.h | |
parent | 2ee575fc1f2b13f083bc5996e20e7350570be546 (diff) |
VSE: Add strip-time intersection test function
Use SEQ_time_strip_intersects_frame function to test if strip intersects with frame.
Note: There are cases where this function should not be used. For example splitting
strips require at least 1 frame "inside" strip. Another example is drawing, where
playhead technically doesn't intersect strip, but it is rendered, because current
frame has "duration" or "thickness" of 1 frame.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D11320
Diffstat (limited to 'source/blender/sequencer/SEQ_time.h')
-rw-r--r-- | source/blender/sequencer/SEQ_time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/sequencer/SEQ_time.h b/source/blender/sequencer/SEQ_time.h index 31549ff3994..2a875370830 100644 --- a/source/blender/sequencer/SEQ_time.h +++ b/source/blender/sequencer/SEQ_time.h @@ -45,6 +45,7 @@ int SEQ_time_find_next_prev_edit(struct Scene *scene, void SEQ_time_update_sequence(struct Scene *scene, struct Sequence *seq); void SEQ_time_update_sequence_bounds(struct Scene *scene, struct Sequence *seq); int SEQ_time_cmp_time_startdisp(const void *a, const void *b); +bool SEQ_time_strip_intersects_frame(struct Sequence *seq, const int timeline_frame); #ifdef __cplusplus } |