forked from blender/blender
main sync #3
@ -85,7 +85,7 @@ float seq_give_frame_index(const Scene *scene, Sequence *seq, float timeline_fra
|
|||||||
|
|
||||||
if (SEQ_retiming_is_active(seq)) {
|
if (SEQ_retiming_is_active(seq)) {
|
||||||
const float retiming_factor = seq_retiming_evaluate(seq, frame_index);
|
const float retiming_factor = seq_retiming_evaluate(seq, frame_index);
|
||||||
frame_index = retiming_factor * (length - 1);
|
frame_index = retiming_factor * (length);
|
||||||
}
|
}
|
||||||
/* Clamp frame index to strip content frame range. */
|
/* Clamp frame index to strip content frame range. */
|
||||||
frame_index = clamp_f(frame_index, 0, length);
|
frame_index = clamp_f(frame_index, 0, length);
|
||||||
@ -504,8 +504,7 @@ int SEQ_time_strip_length_get(const Scene *scene, const Sequence *seq)
|
|||||||
SeqRetimingHandle *handle_start = seq->retiming_handles;
|
SeqRetimingHandle *handle_start = seq->retiming_handles;
|
||||||
SeqRetimingHandle *handle_end = seq->retiming_handles + (SEQ_retiming_handles_count(seq) - 1);
|
SeqRetimingHandle *handle_end = seq->retiming_handles + (SEQ_retiming_handles_count(seq) - 1);
|
||||||
return handle_end->strip_frame_index / seq_time_media_playback_rate_factor_get(scene, seq) -
|
return handle_end->strip_frame_index / seq_time_media_playback_rate_factor_get(scene, seq) -
|
||||||
(handle_start->strip_frame_index + 1) /
|
(handle_start->strip_frame_index) / seq_time_media_playback_rate_factor_get(scene, seq);
|
||||||
seq_time_media_playback_rate_factor_get(scene, seq);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return seq->len / seq_time_media_playback_rate_factor_get(scene, seq);
|
return seq->len / seq_time_media_playback_rate_factor_get(scene, seq);
|
||||||
|
Loading…
Reference in New Issue
Block a user