Frame Blur (Flash's blur filter), child properties in Change All Frame Properties, flips under Visible
Blur is a layer frame's box blur, as Flash's low-quality BlurFilter: a box that many canvas pixels wide, averaged over the frame's crop (premultiplied) by the texture shader, the quad grown by its reach. An animation layer blurs its child's draws at least as much. It interpolates, copies, batches (clamped to 0-255), saves as an editor-only Blur attribute and counts as an Isaac issue. Change All Frame Properties gains the Child section (animation, mode, start frame, random, restart), applied only to animation layers and disabled when no animation layer is targeted. Frame Properties' Flip X/Y sit below Visible instead of inside Child. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b6cd671f7
commit
0adb0f89bc
26 files changed
+308
-48
No files matched your search
@@ -380,6 +380,30 @@ TEST_CASE("change all frame properties changes layer depth only")
|
||||
CHECK(model.frame_get(null)->depth == 0);
|
||||
}
|
||||
|
||||
TEST_CASE("change all frame properties blurs layers and changes only animation layers' children")
|
||||
{
|
||||
auto model = model_load(file_load(TEST_DIR / "render" / "nested.anm2"));
|
||||
Reference animationLayer{0, LAYER, 1, 0};
|
||||
Reference spritesheetLayer{1, LAYER, 2, 0};
|
||||
REQUIRE(model.frame_get(spritesheetLayer));
|
||||
edit::frames_change_apply(model, {.references = {animationLayer, spritesheetLayer}},
|
||||
{.blur = 8.0f, .childAnimation = "Spin", .childMode = ChildMode::ONCE, .childStart = 3},
|
||||
ChangeType::ADJUST);
|
||||
auto child = *model.frame_get(animationLayer);
|
||||
CHECK(child.blur == 8.0f);
|
||||
CHECK(child.childAnimation == "Spin");
|
||||
CHECK(child.childMode == ChildMode::ONCE);
|
||||
CHECK(child.childStart == 3);
|
||||
auto sprite = *model.frame_get(spritesheetLayer);
|
||||
CHECK(sprite.blur == 8.0f);
|
||||
CHECK(sprite.childAnimation.empty());
|
||||
CHECK(sprite.childMode == ChildMode::LOOP);
|
||||
CHECK(sprite.childStart == 0);
|
||||
|
||||
edit::frames_change_apply(model, {.references = {animationLayer}}, {.blur = 1000.0f}, ChangeType::ADD);
|
||||
CHECK(model.frame_get(animationLayer)->blur == FRAME_BLUR_MAX);
|
||||
}
|
||||
|
||||
TEST_CASE("animations_merge moves triggers past the animation placed before them")
|
||||
{
|
||||
auto model_make = []()
|
||||
|
||||
Reference in new issue
Block a user