Fix: VSE snap to hold offset is broken
Snapping to hold offsets was broken by 76043bc, this patch restores the
functionality by simply calculating the image data start/end points and
letting existing clamping code take over to make sure this snap target
does not exist outside of the bounds of the strip.
Pull Request: https://projects.blender.org/blender/blender/pulls/122934
This commit is contained in:
committed by
Aras Pranckevicius
parent
852d658a85
commit
b469dc04f9
@@ -207,10 +207,9 @@ static bool seq_snap_target_points_build(Scene *scene,
|
||||
i += 2;
|
||||
|
||||
if (snap_mode & SEQ_SNAP_TO_STRIP_HOLD) {
|
||||
int content_start = min_ii(SEQ_time_left_handle_frame_get(scene, seq),
|
||||
SEQ_time_start_frame_get(seq));
|
||||
int content_end = max_ii(SEQ_time_right_handle_frame_get(scene, seq),
|
||||
SEQ_time_content_end_frame_get(scene, seq));
|
||||
int content_start = SEQ_time_start_frame_get(seq);
|
||||
int content_end = SEQ_time_content_end_frame_get(scene, seq);
|
||||
|
||||
/* Effects and single image strips produce incorrect content length. Skip these strips. */
|
||||
if ((seq->type & SEQ_TYPE_EFFECT) != 0 || seq->len == 1) {
|
||||
content_start = SEQ_time_left_handle_frame_get(scene, seq);
|
||||
|
||||
Reference in New Issue
Block a user