Share one set of group operations between tracks and animations
model/group.h walks, finds, takes, wraps, unwraps and expands lists of items and groups. Track and animation groups both keep their members in items, and the edits, bakes, merges and writers use it.
This commit is contained in:
1 parent
03bbb93ba6
commit
7e3c5cfeb5
19 files changed
+395
-460
No files matched your search
@@ -24,10 +24,10 @@ std::vector<PeekRow> TimelineContext::peek_rows_get(const TimelineRow& row)
|
||||
};
|
||||
row_add(child->root);
|
||||
std::vector<const Track*> layers;
|
||||
tracks_each(child->layers, [&](const Track& childTrack, auto*) { layers.push_back(&childTrack); });
|
||||
items_each(child->layers, [&](const Track& childTrack, auto*) { layers.push_back(&childTrack); });
|
||||
for (auto it = layers.rbegin(); it != layers.rend(); ++it)
|
||||
row_add(**it);
|
||||
tracks_each(child->nulls, [&](const Track& childTrack, auto*) { row_add(childTrack); });
|
||||
items_each(child->nulls, [&](const Track& childTrack, auto*) { row_add(childTrack); });
|
||||
row_add(child->triggers);
|
||||
return rows;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user