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:
shweet committed 2026-11-22 18:31:13 -05:00
1 parent 03bbb93ba6
commit 7e3c5cfeb5
19 files changed
+395 -460

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ std::optional<Image> spritesheets_merge(Model& model, const std::set<int>& ids,
}
for (int i = 0; i < model.animations_count_get(); ++i)
tracks_each(model.animation_edit(i)->layers, [&](Track& track, auto*) {
items_each(model.animation_edit(i)->layers, [&](Track& track, auto*) {
auto before = layerSpritesheetBefore.find(track.id);
if (before == layerSpritesheetBefore.end() || before->second == baseId)
return;