Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 4,478 Lines • ▼ Show 20 Lines | Sequence *BKE_sequencer_foreground_frame_get(Scene *scene, int frame) | ||||
| Sequence *seq, *best_seq = NULL; | Sequence *seq, *best_seq = NULL; | ||||
| int best_machine = -1; | int best_machine = -1; | ||||
| if (!ed) return NULL; | if (!ed) return NULL; | ||||
| for (seq = ed->seqbasep->first; seq; seq = seq->next) { | for (seq = ed->seqbasep->first; seq; seq = seq->next) { | ||||
| if (seq->flag & SEQ_MUTE || seq->startdisp > frame || seq->enddisp <= frame) | if (seq->flag & SEQ_MUTE || seq->startdisp > frame || seq->enddisp <= frame) | ||||
| continue; | continue; | ||||
| /* only use elements you can see - not */ | /* Only use strips that generate an image, not ones that combine | ||||
| if (ELEM(seq->type, SEQ_TYPE_IMAGE, SEQ_TYPE_META, SEQ_TYPE_SCENE, SEQ_TYPE_MOVIE, SEQ_TYPE_COLOR)) { | * other strips or apply some effect. */ | ||||
| if (ELEM(seq->type, SEQ_TYPE_IMAGE, SEQ_TYPE_META, SEQ_TYPE_SCENE, | |||||
| SEQ_TYPE_MOVIE, SEQ_TYPE_COLOR, SEQ_TYPE_TEXT)) { | |||||
| if (seq->machine > best_machine) { | if (seq->machine > best_machine) { | ||||
| best_seq = seq; | best_seq = seq; | ||||
| best_machine = seq->machine; | best_machine = seq->machine; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| return best_seq; | return best_seq; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,183 Lines • Show Last 20 Lines | |||||