Change All Frame Properties: Depth

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-06 01:24:05 -04:00
1 parent f3fb7d5101
commit a440af3c95
5 files changed
+31 -2

No files matched your search

+11
View File
@@ -367,3 +367,14 @@ TEST_CASE("frames_split splits every selected frame that spans the time")
CHECK(model.track_get({0, NULL_, 0})->frames.size() == nullCount + 1);
CHECK(model.track_get({0, LAYER, 0})->frames[0].duration == 1);
}
TEST_CASE("change all frame properties changes layer depth only")
{
auto model = fixture_load("02_items.anm2");
Reference layer{0, LAYER, 0, 0};
Reference null{0, NULL_, 0, 0};
edit::frames_change_apply(model, {.references = {layer, null}}, {.depth = 2}, ChangeType::ADD);
edit::frames_change_apply(model, {.references = {layer, null}}, {.depth = 1}, ChangeType::SUBTRACT);
CHECK(model.frame_get(layer)->depth == 1);
CHECK(model.frame_get(null)->depth == 0);
}