Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Antalik <richardantalik@gmail.com>2021-02-08 13:30:26 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-02-08 13:30:26 +0300
commit4402f43b7119c8ee1e76fdb261454e04e4bb9520 (patch)
tree10a9d62d1c62bf410c4829c77a52aa80c436286f
parenteccc57aa5c791009634ffe8a1e41472ce02317f5 (diff)
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 93c10797dc35e17bbd96f3711a151acf2d184848 Reviewed By: sergey Differential Revision: https://developer.blender.org/D10356
-rw-r--r--source/blender/sequencer/intern/effects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/effects.c b/source/blender/sequencer/intern/effects.c
index 65c768076c5..fc8a5c62744 100644
--- a/source/blender/sequencer/intern/effects.c
+++ b/source/blender/sequencer/intern/effects.c
@@ -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;
}