Fix #129226: Retiming transition to faster speed does not work
Caused by comparing speed of segment before transition and transition itself. It should compare speed of segment after transition instead. Pull Request: https://projects.blender.org/blender/blender/pulls/129610
This commit is contained in:
committed by
Richard Antalik
parent
d50d1e757b
commit
ba59908dc8
@@ -253,7 +253,7 @@ bool SEQ_retiming_key_is_freeze_frame(const SeqRetimingKey *key)
|
||||
static bool seq_retiming_transition_is_linear(const Sequence *seq, const SeqRetimingKey *key)
|
||||
{
|
||||
const float prev_speed = SEQ_retiming_key_speed_get(seq, key - 1);
|
||||
const float next_speed = SEQ_retiming_key_speed_get(seq, key + 1);
|
||||
const float next_speed = SEQ_retiming_key_speed_get(seq, key + 2);
|
||||
|
||||
return abs(prev_speed - next_speed) < 0.01f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user