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
@@ -153,8 +153,8 @@ std::vector<TimelineRow> TimelineContext::timeline_item_rows_get()
|
||||
if (!group.isExpanded)
|
||||
continue;
|
||||
rows.push_back({.type = ROOT, .groupType = type, .groupId = group.id, .depth = 1});
|
||||
for (auto trackIndex : order_get((int)group.tracks.size(), isReversed))
|
||||
if (auto& track = group.tracks[trackIndex]; is_track_shown(track))
|
||||
for (auto trackIndex : order_get((int)group.items.size(), isReversed))
|
||||
if (auto& track = group.items[trackIndex]; is_track_shown(track))
|
||||
rows.push_back({.type = type,
|
||||
.id = track.id,
|
||||
.index = trackIndex,
|
||||
|
||||
Reference in new issue
Block a user