Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/effects.c
| Show First 20 Lines • Show All 3,151 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Generator strips with zero inputs have their length set to 1 permanently. In some cases it is | * Generator strips with zero inputs have their length set to 1 permanently. In some cases it is | ||||
| * useful to use speed effect on these strips because they can be animated. This can be done by | * useful to use speed effect on these strips because they can be animated. This can be done by | ||||
| * using their length as is on timeline as content length. See T82698. | * using their length as is on timeline as content length. See T82698. | ||||
| */ | */ | ||||
| static int seq_effect_speed_get_strip_content_length(const Sequence *seq) | 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; | return seq->enddisp - seq->startdisp; | ||||
| } | } | ||||
| return seq->len; | return seq->len; | ||||
| } | } | ||||
| void seq_effect_speed_rebuild_map(Scene *scene, Sequence *seq, bool force) | void seq_effect_speed_rebuild_map(Scene *scene, Sequence *seq, bool force) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,175 Lines • Show Last 20 Lines | |||||