SVG sheets: draw tool hint, convert to PNG for Rebirth; game copy skips built-in events
Drawing or erasing on an SVG spritesheet shows why it can't be edited (and no longer leaves an empty undo step). Saving a Rebirth document whose layers show SVG spritesheets first offers to convert them into PNGs beside them (one undoable edit); keeping them counts them in the Isaac warning. The game's copy of a trigger keeps its first event that isn't stop or done, and only further custom events count as dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d274e547a
commit
280adaa189
14 files changed
+154
-10
No files matched your search
@@ -125,3 +125,11 @@ TEST_CASE("an alpha offset is kept by the editor's copy only")
|
||||
CHECK(model_load(text).frame_get({0, LAYER, 0, 0})->colorOffset.a == doctest::Approx(-127.0f / 255.0f));
|
||||
CHECK(model::isaac_issues_get(anm2).alphaOffsetFrames == 1);
|
||||
}
|
||||
|
||||
TEST_CASE("only SVG spritesheets that layers show count against Rebirth")
|
||||
{
|
||||
auto anm2 = model_load(file_load(TEST_DIR / "render" / "vector.anm2"));
|
||||
CHECK(model::spritesheets_vector_used_get(anm2) == std::set{0});
|
||||
anm2.content.layers.clear();
|
||||
CHECK(model::spritesheets_vector_used_get(anm2).empty());
|
||||
}
|
||||
Reference in new issue
Block a user