Fix T85426: Speed effect stretch to input not working
`seq_effect_speed_get_strip_content_length()` checked only for number
of inputs of target strip, even if it's not an effect.
Only effects are treated in different way, so check for type as well.
Broken by 93c10797dc
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D10356
This commit is contained in:
parent
eccc57aa5c
commit
4402f43b71
Notes:
blender-bot
2023-02-14 05:41:57 +01:00
Referenced by issue #85426, VSE: Speed Strip - Stretch to Input Strip Length has no effect
|
@ -3157,7 +3157,7 @@ static void store_icu_yrange_speed(Sequence *seq, short UNUSED(adrcode), float *
|
|||
*/
|
||||
static int seq_effect_speed_get_strip_content_length(const Sequence *seq)
|
||||
{
|
||||
if (SEQ_effect_get_num_inputs(seq->type) == 0) {
|
||||
if ((seq->type & SEQ_TYPE_EFFECT) != 0 && SEQ_effect_get_num_inputs(seq->type) == 0) {
|
||||
return seq->enddisp - seq->startdisp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue