VSE: Cleanup: Simplify code in iterator by de-duplicating logic.
No reason to do the same exact thing in two different functions.
This commit is contained in:
@@ -95,13 +95,7 @@ static void query_all_strips_recursive(ListBase *seqbase, VectorSet<Sequence *>
|
||||
VectorSet<Sequence *> SEQ_query_all_strips_recursive(ListBase *seqbase)
|
||||
{
|
||||
static VectorSet<Sequence *> strips;
|
||||
LISTBASE_FOREACH (Sequence *, seq, seqbase) {
|
||||
if (seq->type == SEQ_TYPE_META) {
|
||||
query_all_strips_recursive(&seq->seqbase, strips);
|
||||
}
|
||||
strips.add(seq);
|
||||
}
|
||||
|
||||
query_all_strips_recursive(seqbase, strips);
|
||||
return strips;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user