Write documents in one of three modes instead of ten flags

SAVE_GAME, SAVE_EDITOR and SAVE_CLIPBOARD are the only combinations the editor used.
The dirty-state hash uses the editor's copy. The eased-frame baking only a test preset reached is gone.
Goldens: the old editor preset is now clipboard, game and editor replace isaac and anm2ed, and default is gone.
Every changed golden equals its old one without default tints and color offsets.
This commit is contained in:
shweet committed 2026-11-22 18:33:49 -05:00
1 parent 7e3c5cfeb5
commit 0f5a224e7a
140 files changed
+914 -1571

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ static Model fixture_load(const char* name)
static void operation_check(const char* name, const Model& model)
{
golden_check(GOLDEN_DIR / std::format("operation.{}.xml", name), model_serialize(model, SERIALIZE_ANM2ED_DEFAULT));
golden_check(GOLDEN_DIR / std::format("operation.{}.xml", name), model_serialize(model, SAVE_EDITOR));
}
static Track& layer_track_get(Model& model, int animationIndex, int layerId)
@@ -485,7 +485,7 @@ TEST_CASE("content_remove takes what refers to an item with it")
auto tracks_count = [](const Model& model, int layerId) {
int count = 0;
for (auto [index, animation] : model.animations_get())
tracks_each(animation->layers, [&](const Track& track, auto*) { count += track.id == layerId; });
items_each(animation->layers, [&](const Track& track, auto*) { count += track.id == layerId; });
return count;
};