VSE: Clamp resulting frame in multiply mode
The clamp added will ensure immediate speed direction change on changing to/from positive/negative speed factor when using the Speed effect strip's Multiply mode. Reviewed By: ISS, sergey Differential Revision: https://developer.blender.org/D12462
This commit is contained in:
parent
4a562f5077
commit
0419c74ae8
|
@ -3154,6 +3154,7 @@ void seq_effect_speed_rebuild_map(Scene *scene, Sequence *seq)
|
|||
float target_frame = 0;
|
||||
for (int frame_index = 1; frame_index < effect_strip_length; frame_index++) {
|
||||
target_frame += evaluate_fcurve(fcu, seq->startdisp + frame_index);
|
||||
CLAMP(target_frame, 0, seq->seq1->len);
|
||||
v->frameMap[frame_index] = target_frame;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue