Commit Graph
100 Commits
Author SHA1 Message Date
shweet 7e81ea4259 Play sounds with SDL audio and stb_vorbis instead of SDL_mixer
Sounds decode once to 48 kHz stereo floats. Each play is a stream on one shared device, opened on the first play.
A render's audio is mixed offline at 48 kHz, so command line renders get their sounds too.
The About music is Ogg Vorbis now. Opus, libopus and libogg are gone.
2026-11-22 17:34:01 -05:00
shweet 7afdf709c3 Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces.
Semicolons in comments became full stops.
Designated initializers may leave fields out without a warning.
2026-11-22 17:30:03 -05:00
shweet 40f6b554b5 Initialize with = instead of braces, and drop const from local autos
Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
2026-11-22 17:27:24 -05:00
shweet 666f65bf3a Remove namespaces, and make file-local helpers static
Names that only a namespace told apart get prefixes: TOOL_PAN, FONT_BOLD, ICON_FOLDER, COLOR_WHITE, path_to_utf8 and so on.
The OpenGL shader class is ShaderProgram, and its uniform ShaderUniform, beside the document's Shader and Uniform.
Free functions a member of the same name would hide are called through :: for now.
Two unused shader window helpers are gone.
2026-11-22 17:25:09 -05:00
shweet 7fb2c607c2 Flatten src into model, edit and ui, with .h headers
Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui.
Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization.
Includes are written from src.
2026-11-22 17:12:05 -05:00
shweet a515267e26 Build: libraries optimized, resources compiled from files, stb and doctest as submodules
CMAKE_BUILD_TYPE is now set before the libraries are added, so SDL, SDL_mixer and lunasvg build optimized.
Release on Linux is -O2 with unused sections dropped and the binary stripped.
SDL builds only what the editor uses. simdjson builds without exceptions and with two parsers.
Fonts, icons, the About music and friends live under resources/ and compile in through one generated C file.
The string tables are shared between files instead of copied into each.
nanosvg and imconfig.h were unused and are gone.
2026-11-22 17:07:36 -05:00
shweet 4e35f9d450 Stop tracking CLAUDE.md 2026-11-22 16:57:26 -05:00
shweet 9072ac5745 JSON: shorter keys, a child object, a markers pair, and no version key 2026-11-22 16:57:26 -05:00
shweetandClaude Opus 5.5 8ef089d306 Isaac compatibility: Convert and Save bridges what the game can't show
The Isaac prompt offers Convert and Save, Ignore and Save, or Cancel; the
document remembers the choice (IsaacIgnored / "isaacIgnored", editor-only)
for saves that don't ask (the warning off, or `convert`). Converting:
- depth: a copy of the layer per depth ("body (depth +1)"), standing where
  the editor draws it and showing only that depth's frames
- alpha offsets join the alpha tint (the same on opaque pixels)
- skew, blur and shaders: each layer frame using one is drawn alone at 1x
  into <name>.baked.png beside the save (each image once), on a copy of its
  layer ("body (baked)") right after it, one frame per step; a skewed root
  or group root goes into its layers' images. `convert` makes a headless
  OpenGL context for it; without one (or if the sheet can't be written)
  these are dropped with a warning. Autosaves don't bake.
Tests check the bridged copy draws as the editor does, frame by frame.

Purge Default Color Values is gone: XML saves always leave out tints of 255
and color offsets of 0, in both copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:59:35 -04:00
shweetandClaude Opus 5.5 065dd522f3 Remove items in use; drop Remove Unused
Every content window's Remove (the Delete key) takes the selection out with
what refers to it: a layer's or null's tracks in every animation, a
spritesheet's plain layers (and regions), an event or sound from its triggers
(dropping triggers left with neither), a shader or region from its frames
(which keep the region's rectangle), and a library's layers, flattened into
plain ones. When anything is in use it asks first, listing what goes ("This
will remove:" ... "Are you sure?"). Remove Unused is gone; Remove takes its
place in each footer.

One reference walk (model.cpp) counts uses and finds unused items, so
shaders on null and root frames count, and an animation layer's unused
spritesheet doesn't. Flattening can be limited to some layers, merging only
their children's triggers, which now record the layer they fired through.
edit::content_remove does the removal; Document::spritesheet_path_resolver_get
is shared with saving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:33:25 -04:00
shweetandClaude Opus 5.5 c9d68781d0 Add a convert command; JSON libraries come before layers
`anm2ed convert <file> [--format json|xml] [--out PATH]` saves a document as
the editor does: XML (the default) is the game's copy with the editor's
embedded, animation layers flattened through their libraries; JSON is the
editor's own. Without --out the file is rewritten in place. JSON problems go
to stderr; a file that can't load or write exits 1, a bad --format 2. A
document loads without an OpenGL context now: its custom shaders just aren't
compiled. The file and --out are made absolute, so a bare file name has a
folder (render and frame crashed on one too).

JSON writes and reads "libraries" before "layers", so a layer's library index
is checked against the libraries rather than reported missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:33:15 -04:00
shweetandClaude Opus 5.5 201a7c7cfc Replace tinyxml2 with pugixml
Parsing a 60 MB save drops from about 350 ms to 30 ms (a whole load from about
620 ms to 200). The reader keeps tinyxml2's rules for numbers and booleans
("%d"/"%f" on the leading text; a number or true/false), so every golden is
unchanged, and parse errors now give a line. SVG composing (pack and merge)
builds, clones and prints through pugixml. Tests check escaping by reading a
save back instead of comparing against tinyxml2's printer, and cut
SourceDocument from saves as text. pugixml is a submodule at v1.16; the About
window lists it, and simdjson, instead of tinyxml2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:57:39 -04:00
shweetandClaude Opus 5.5 b69b0eaa1b JSON documents; remove the extended format
Documents can be saved as the editor's own JSON (Save as JSON, in Configure's
Serialization row, off by default) and any .anm2 starting with '{' opens as
one. The schema is new, not an XML mirror: content items in arrays (an item's
index is its id), animations keyed by unique name (a repeat saves as "Name 2"),
groups nested, paired values as arrays, a frame on a region storing only the
region, ISO 8601 dates, every default left out, and one line per frame and
content item, with anything else that fits in 100 columns on one line. Unknown
XML isn't kept. Each part is described once (frame_io, track_io, model_io...)
and run by a JsonWriter or a JsonReader; simdjson parses (new submodule). A
JSON file that opens but has unknown keys, wrong types, unknown values or bad
indices lists them by location in a warning toast; libraries toast their load
problems too. With Save as JSON on, saving always shows the Isaac warning.

The extended format is gone: no setting, File menu toggle, ExtendedVersion or
isExtendedFormat. XML saves are always the game's copy with SourceDocument;
old extended files still open. Document saves take Options instead of loose
bools, and model_load reads through model_load_string. docs/json_format.md
replaces docs/extended_format.md; goldens lose ExtendedVersion and the
.extended variants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:48:25 -04:00
shweetandClaude Opus 5.5 d77b2bae71 Open Directory selects the file in the file manager
Showing a spritesheet, sound, library (or Explore XML Location's document)
opens its folder with the file selected: explorer /select on Windows, the
freedesktop FileManager1 ShowItems call on Linux (Nautilus, Dolphin, Nemo,
Caja, Thunar...), falling back to opening the folder. Paths go to the shell
single-quoted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 01:18:05 -04:00
shweetandClaude Opus 5.5 a6f9b425e8 Close seams where an SVG's shapes meet
Anti-aliasing leaves a partly transparent hairline where two shapes share an
edge (each covers about half of those pixels), and the background shows
through. After drawing an SVG, a partly covered pixel with opaque pixels on
both sides of it, along any axis within two pixels, takes their color over
its own and becomes opaque; outer edges keep their anti-aliasing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:25:45 -04:00
shweetandClaude Opus 5.5 4141c53681 Remove built-in stop and done events
Events are plain again: no built-in names offered, locked or listed in the
Events window, and the game's copy of a trigger keeps its first event. The
list rows' rename lock and event_id_resolve go with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:20:11 -04:00
shweetandClaude Opus 5.5 5f01e8065d SVG spritesheets: pack, merge, rasterize
Packing an SVG sheet makes a new SVG holding its drawing once (as a symbol),
each region a clipped view of it at its new place; merging makes an SVG
whenever any sheet is one, with PNG sheets embedded as images (the merged
sheet's file name takes the matching extension). Both go through
Image::compose, which also does the pixel versions, so merge_append is gone.
Vector sheets save as their SVG (autosaves too, and images load as PNG or
SVG by content), and their asset key includes the SVG. Rasterize in the
Spritesheets menu turns selected SVG sheets into PNGs beside them, with a
toast for each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 00:15:56 -04:00
shweetandClaude Opus 5.5 bec89bf48f Purge Default Color Values (on by default)
Saves leave out tint channels of 255 and color offsets of 0, which Isaac and
the editor read as those defaults, in both the game's copy and the editor's.
The option sits beside Extended Format in Configure's Serialization row; the
manager takes it with the other settings (chords_set is now settings_apply).
Also drops layer_child_transform_get's unused model parameter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 18:22:26 -04:00
shweet 0857e62419 metadata 2026-10-08 18:47:39 -04:00
shweetandClaude Opus 5.5 d4b88289ac README and extended format spec for libraries, animation layers and the rest
docs/extended_format.md describes ExtendedVersion 2 for converters and game
loaders: libraries, animation layers and how children are placed, timed and
fire triggers, multiple events, SVG spritesheets, the frame attributes and
the transform, and what a Rebirth copy keeps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:44:41 -04:00
shweetandClaude Opus 5.5 4a13c345ef Rebirth saves keep children's trigger events; ExtendedVersion 2
Flattening adds the events animation layers' children fire to the
animation's triggers on those frames (events matched by name, added when
missing). Extended documents now write ExtendedVersion="2", for files that
may hold libraries, animation layers, child playback, several events per
trigger, alpha offsets and blur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:43:15 -04:00
shweetandClaude Opus 5.5 38ce53f870 Animation layer tooltips name their animation and library
The Layers window and the timeline share one tooltip line set: a layer's
spritesheet, or its animation and library (Self for this file), noting when
the animation is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:39:25 -04:00
shweetandClaude Opus 5.5 0e705e43fa Animation layers in the timeline: child tracks, stepping in, breadcrumb
An animation layer's row shows a folder; opening it lists its child's tracks
underneath, greyed and read only, with each keyframe drawn where the parent
reaches it. Double-clicking the row (or a child row) steps into the child:
its animation in this tab, or its library's tab (opened if need be), at the
time the parent plays it. A breadcrumb above the timeline leads back out, and
the preview draws the parent around the child, dimmed and frozen where it was
stepped in from.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:35:29 -04:00
shweetandClaude Opus 5.5 8807096170 Rebirth saves flatten animation layers; missing animations show red; pivot paths follow libraries
A Rebirth document's game copy turns each animation layer into plain layers,
one per layer its child draws, baked a frame at a time (runs of identical
frames merged; skew dropped), adding library spritesheets at paths relative to
the document; the editor's copy is unchanged and the Isaac warning says so.
Layers whose animation isn't in its file are drawn red in the Layers window
(nothing is said while a library hasn't loaded). Onionskin pivot paths are
redrawn when a library loads or reloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:16:35 -04:00
shweetandClaude Opus 5.5 76c2186c81 Child triggers fire; Auto Resource Reload; animation layer labels
Playback, renders and the preview's event label include the triggers of
child animations (from this file or a library) as each child reaches them;
libraries' sounds load with them, and a frame can mix several sounds. The
reload setting is now Auto Resource Reload and covers libraries too.
Animation layers are labeled by their animation (not a spritesheet) in the
timeline and Item Properties as well as the Layers window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:06:47 -04:00
shweetandClaude Opus 5.5 280adaa189 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>
2026-10-08 17:56:06 -04:00
shweetandClaude Opus 5.5 5d274e547a Spritesheet Editor draws SVG sheets sharp when zoomed
vector_image_get takes an image and a scale, so the editor shares the
preview's per-zoom-level cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:48:41 -04:00
shweetandClaude Opus 5.5 54f62529e0 SVG spritesheets from the file dialog and drag and drop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:42:22 -04:00
shweetandClaude Opus 5.5 a917d8ae97 SVG spritesheets
An .svg spritesheet loads through lunasvg (now part of the core library) at
one pixel per SVG unit, so regions, crops and picking work as for PNGs. The
preview, renders and CLI draw it again, cached per power-of-two zoom level up
to 8x, so it stays sharp when zoomed or scaled. Its pixels aren't edited
(pencil, eraser, pack and merge leave it alone, and Save skips it), and the
Isaac warning counts SVG sheets since the game can't load them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:41:57 -04:00
shweetandClaude Opus 5.5 b31a28ebe9 Several events per trigger, built-in stop and done events
A trigger holds a list of events (Frame Properties lists them like sounds);
the first stays its EventId, the rest are <Event Id> children in the
editor's copy, and the Isaac warning counts the dropped ones. In extended
documents, stop and done are offered as built-in events: listed in italics
at the top of Events, locked from renaming, and added to the file when a
trigger first uses one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:35:11 -04:00
shweetandClaude Opus 5.5 4375844c84 Alpha color offset
Color Offset gains an alpha channel (Frame Properties, Change All, property
copy, interpolation and root folding), drawn by adding it to the texel's
alpha. Saved as AlphaOffset in the editor's copy only and counted by the
Isaac warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:22:15 -04:00
shweetandClaude Opus 5.5 0adb0f89bc 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>
2026-10-08 17:16:49 -04:00
shweetandClaude Opus 5.5 6b6cd671f7 Item Properties shares Layer Properties' source fields
New layers added from the timeline can play an animation too: both popups
draw the source with layer_source_draw and build the item from the same
ItemEdit, and edit::item_add takes the new layer or null whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:02:28 -04:00
shweetandClaude Opus 5.5 af60cdc11c Item Properties fits its content
The popup is small and as tall as its options instead of half the screen;
the existing-items list keeps a fixed height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:59:35 -04:00
shweetandClaude Opus 5.5 e8372ca149 Layer Properties source layout, Add as Library on drop, library animations in tooltips
Layer Properties puts Source under its own separator with the radio buttons
on one line (scoped so they no longer clash with the combos' ids), and the
library combo calls this file "Self". Dropping an .anm2 offers Add as
Library. A library's animations are listed in its tooltip instead of a
dropdown under its card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:56:26 -04:00
shweetandClaude Opus 5.5 d1a6d89d14 Libraries window, animation layers and child playback
A Libraries window (docked with Spritesheets and Sounds) links other .anm2
files: cards list each one's animations, open it as a tab, and reload when
it changes on disk. A layer's Source is a spritesheet or an animation, from
this file or a library; the preview, renders and CLI draw the child in the
layer's frame. Animation-layer keyframes set the child's animation, mode
(loop, once, hold), start frame (or random) and restart; Child is also a
copyable frame property. All of it is editor-only and counted by the Isaac
warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:51:48 -04:00
shweetandClaude Opus 5.5 6edf5f0e5b Per-document target: Extended or Rebirth
A document remembers whether it saves as the editor's document alone (marked
with ExtendedVersion on Info) or as Rebirth's document with the editor's copy
embedded. Detected on open; File > Extended Format toggles it (undoable). The
setting is now the default for new files, and the Isaac compatibility warning
only applies to Rebirth documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:14:25 -04:00
shweetandClaude Opus 5.5 1381824fb7 Rename Shear to Skew
The property, tool, settings, strings and saved attribute are now Skew
(SkewX/SkewY in the editor's copy). Files with ShearX/ShearY still load,
and settings saved under the old names carry over. Goldens differ only in
the attribute name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 15:42:36 -04:00
shweetandClaude Opus 5.5 2ce8795b4a Trigger sounds: overlap instead of cutting off, and play once per frame
- A sound can play over itself: each play uses a track that isn't busy
  (reusing finished ones), so close triggers no longer restart each other.
  Rendered audio mixes them the same way.
- The preview plays each frame's trigger sound once as playback reaches the
  frame, instead of on every tick spent in it, and no longer skips the
  sound of a frame passed over between ticks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:26:00 -04:00
shweetandClaude Opus 5.5 ef5796d667 Merging animations places triggers after the animation merged before them
Appending moves the appended animation's triggers by the length merged so
far; prepending moves the target's triggers by the prepended length.
Replace and ignore keep trigger times. Goldens for prepend merges updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 02:03:20 -04:00
shweetandClaude Opus 5.5 a440af3c95 Change All Frame Properties: Depth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 01:24:05 -04:00
shweetandClaude Opus 5.5 f3fb7d5101 Layer frame depth: change a layer's draw order for part of an animation
Layer frames get an editor-only Depth (Frame Properties, property
copy/paste): +N draws that layer N layers above its place in the timeline
for that frame, -N below; stepped, not interpolated. The draw list orders
layers by it (preview, renders, CLI). Saved as Depth in the editor's copy
only; the Isaac Compatibility Warning and anm2ed info count frames using it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 01:21:50 -04:00
shweetandClaude Opus 5.5 94d0bbf206 Split works on every selected frame
Split (menu and shortcut) splits each selected frame that spans the time
under the cursor or playhead; triggers are skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 00:51:48 -04:00
shweetandClaude Opus 5.5 f4fd255a02 CLI GIF/video rendering uses the editor's FFmpeg setting unless --ffmpeg is given
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:36:15 -04:00
shweetandClaude Opus 5.5 abb9f965d6 The CLI is a mode of anm2ed (anm2ed info|frame|render ...), not a separate binary
On Windows it attaches to the console it was started from, and gets UTF-8
arguments like the editor does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:34:36 -04:00
shweetandClaude Opus 5.5 2dbbfa5e86 anm2ed-cli and render tests: look at animations without the editor
- anm2ed-cli info|frame|render: a text summary, one frame as a PNG, or the
  whole animation as a contact sheet, PNG sequence, GIF or video, drawn by
  the editor's OpenGL renderer in a hidden window (render::HeadlessGL).
- render::animation_frame_render / animation_record draw an animation's
  layers over its bounds (Canvas::layers_render, also used by About) and
  record them through the existing Recorder.
- The editor's code builds as anm2ed_app, shared by the editor, the CLI and
  anm2ed_render_tests, which checks a fixture's pixels and golden PNGs
  (with tolerance; skipped without OpenGL) and leaves its renders in
  build/renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:32:42 -04:00
shweetandClaude Opus 5.5 356d74ebb6 Workshop description matches the README's features; README mentions detachable windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:31:39 -04:00
shweetandClaude Opus 5.5 4d949827c8 Toasts: drop leftover blank line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:13:43 -04:00
shweetandClaude Opus 5.5 4856d9ba27 Detachable windows (Dear ImGui multi-viewports)
Settings > Display > Detachable Windows (on by default): any window can be
dragged outside the main window into its own OS window; the backend leaves
it off on Wayland. Detached windows are rendered after the main one, the
main window's close button still quits, window backgrounds are opaque, and
toasts anchor to the main window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:13:33 -04:00
shweetandClaude Opus 5.5 d53d176125 Define NOMINMAX on Windows so windows.h doesn't break std::max
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 22:02:26 -04:00
shweetandClaude Opus 5.5 dd898c2a0c Same-line Pivot Path/Only Selected Item and the save warning options
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:48:46 -04:00
shweet 9ff05e389d agents... 2026-10-03 21:37:02 -04:00
shweetandClaude Opus 5.5 c09e8ca64e README: current features, build and tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:34:40 -04:00
shweetandClaude Opus 5.5 ce3b544392 Autosave edited spritesheets beside their files
With document autosave, spritesheets with unsaved pixel edits are written
to a hidden .<name>.png.autosave beside their PNG (only when changed since
their last autosave; a spritesheet edit alone also triggers the document
autosave). Restoring a document's autosave brings them back as unsaved
edits without touching the PNGs. The copies are removed when the
spritesheet is saved or reloaded, or the document's autosave is discarded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:28:02 -04:00
shweetandClaude Opus 5.5 ded95f436a Paste Property is one item; spritesheet reload every 3 s; Snapshots reads Undo/Redo
- Paste > Property pastes the property that was copied, enabled only when
  the clipboard holds one the selected frames can take.
- Auto spritesheet reload checks every 3 seconds (no interval setting); its
  Enabled checkbox no longer shares an ID with Autosave's.
- The Snapshots section in Configure is now Undo/Redo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:21:44 -04:00
shweetandClaude Opus 5.5 97be81b5c1 Timeline: cut, copy and paste one frame property
In the frames context menu, Cut/Copy/Paste each open onto Frame (the whole
frame, as Ctrl+X/C/V) or Property, which lists the properties the frame
type has. Copying a property copies the focused (or first selected) frame;
pasting sets just that property on the selected frames, and is disabled
when a target lacks it or what it refers to (region on the target's
spritesheet, shader, event, sounds). Cutting resets it to the default.
Actions gained submenus; edit::frames_property_set does the work (tested).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:11:09 -04:00
shweetandClaude Opus 5.5 8fb28ef30a Isaac compatibility warning on save
Settings > File > Isaac Compatibility Warning (on by default): saving in
the Isaac format first lists what the game's copy can't keep as it is -
eased frames (baked into one-frame steps), group transforms (baked into
their items), shear and shaders (dropped), trigger sounds (dropped) - with
Save Anyway / Cancel. model::isaac_issues_get counts them (tested on the
fixtures).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:05:57 -04:00
shweetandClaude Opus 5.5 251d04848a Timeline start/end markers
Right-clicking the numbered row offers Add Start/End Marker Here and
Remove Markers; Shift+Comma / Shift+Period (configurable) set them at the
playhead. Markers are faded playheads, with the numbers outside their
range darkened, and playback loops within them. They are saved as
StartMarker/EndMarker on the editor's copy (SourceDocument) only, as one
undoable edit each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:03:00 -04:00
shweetandClaude Opus 5.5 24af98a68e Onionskin: Pivot Path and Only Selected Item
Pivot Path draws, on the preview, the path each item's pivot travels:
a red point per frame joined by a red dashed line (Canvas::line_render,
on the dashed shader). Only Selected Item limits the onionskin samples
and pivot paths to the selected root, group root, layer or null. Paths
are cached until the document, animation or root-transform view changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:58:39 -04:00
shweetandClaude Opus 5.5 993957decf Auto spritesheet reload; operator symbols on Change All Frame Properties buttons
- Settings > File > Auto Spritesheet Reload (on by default, every 2 s):
  spritesheets whose files change on disk are reloaded as one undoable
  edit; ones with unsaved pixel edits are left alone, and the editor's own
  saves don't trigger a reload. Document::spritesheets_reload is shared
  with the Reload action.
- Change buttons read "= Adjust", "+ Add", "- Subtract", "× Multiply",
  "÷ Divide".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:55:05 -04:00
shweetandClaude Opus 5.5 d8ab5ff018 About: dancing characters rendered 1:1 and scaled up with nearest filtering
Framebuffer gains a filter setting (linear by default); the characters'
canvases use nearest so they stay pixelated at their larger size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:35:42 -04:00
shweet e713c15030 Revert "About: dancing characters at 1:1 size"
This reverts commit 3653295c8f.
2026-10-03 20:34:55 -04:00
shweetandClaude Opus 5.5 3653295c8f About: dancing characters at 1:1 size
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:33:00 -04:00
shweetandClaude Opus 5.5 5f40a789fe About: wider bars that reach the top, characters in the credits box, larger title
Bars are 3x wider and scaled to the loudest recent level, so loud parts
reach the top. The dancing characters stand in the box's bottom corners
inside the bars (sized as the original's robots were); the title row now
holds only the title, twice as large and shrunk to fit its width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:31:33 -04:00
shweetandClaude Opus 5.5 99a3744a31 About: credits roll after the original editor's About box
Recovered from IsaacAnimationEditor.exe (its About form and GDI+ paint
code): the credits scroll up a black box at 30 Hz, one effect per pass
(none, sway with trails, stretch to the music with trails while the title
flashes random colors, per-line sine wave), between left/right volume bars
that leave fading trails and shade from red into a color cycling with time.
The bars follow the music's loudness through a new audio::levels_get.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:25:44 -04:00
shweetandClaude Opus 5.5 2c4bee6330 Convert scales saved as multipliers to percents on load
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:09:03 -04:00
shweetandClaude Opus 5.5 70abe366a0 Scales are saved as percents, clamped on load
UI Scale (50-200%) and render Scale (25-1000%) both step by 25%. Settings
saved as multipliers read as tiny percents and clamp to the minimum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:07:53 -04:00
shweetandClaude Opus 5.5 e6a374f571 UI Scale and render Scale are entered as percents
input_percent_range edits a multiplier setting as a percent, so saved
settings keep their meaning. UI Scale: 50-200% in 25% steps; render Scale:
10-1000%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:05:27 -04:00
shweetandClaude Opus 5.5 640bf0abeb Write XML, hashes and clipboard text straight from the model
The writer emits to a Sink instead of building an XmlNode tree: TEXT prints
as tinyxml2's XMLPrinter would, HASH folds the same elements into the FNV
hash, and TREE still builds nodes (for the FrameRestore backup). Unknown
children are interleaved at their read positions as elements stream out;
numbers skip escaping.

Corpus (1,251 files, Release): save 0.73 s -> 0.50 s, extended save
0.12 s -> 0.06 s, hash 0.13 s -> 0.05 s. Saves, hashes and clipboard text
are byte-identical to before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:00:51 -04:00
shweetandClaude Opus 5.5 210232eb83 Faster saving and hashing
- XML text is printed straight from the node tree by a Printer that matches
  tinyxml2's XMLPrinter byte for byte; no tinyxml2 document is built to save.
- Numbers format with std::to_chars (whole numbers as integers) instead of
  snprintf, with the same text as "%.8g".
- Frame attribute and track child vectors are reserved up front.
- Repeated attributes in a read file collapse as tinyxml2 wrote them.

Corpus (1,251 files, Release): save 4.2 s -> 0.77 s, extended save 0.61 s ->
0.12 s, hash 0.28 s -> 0.13 s; every output is byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:43:56 -04:00
shweetandClaude Opus 5.5 c4b21fd90c Spritesheet pixel edits live in src/edit/spritesheets.cpp
regions_trim, spritesheet_pack and spritesheets_merge are model functions that
take the source image(s) and return the new image; Document keeps thin
wrappers that store the result as an asset. The edits are now tested
headless (trim, pack, merge with layer remap).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:06:20 -04:00
shweetandClaude Opus 5.5 4b6e186f57 Canvases handle input before rendering
Hover is tested against the canvas rectangle (is_canvas_hovered) before the
image is drawn, so pan, zoom, the region hover highlight and the checker
background follow the mouse in the same frame instead of one frame late.
The spritesheet editor's second hover/mouse computation is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:03:12 -04:00
shweetandClaude Opus 5.5 69e78ff77a Timeline: per-frame work runs once, not once per row
Escape, the context menu (and its shortcuts), frame resize drags and the
frame-move drop now run once from frames_child instead of inside every
row's child. draw() hands popups and global shortcuts to popups_update()
and shortcuts_update(). Drops a dead style push/pop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:01:40 -04:00
shweetandClaude Opus 5.5 146e5d4ff1 Fix close-popup ImGui stack imbalance, stale region hover, shared resize chord state, window properties leak
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:58:30 -04:00
shweetandClaude Opus 5.5 c04a685f18 Theme and ImGui helpers live in the imgui namespace, matching their files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:47:42 -04:00
shweetandClaude Opus 5.5 901c11691b types.hpp is UI-free: theme moves to util/imgui/theme.hpp, ImGui conversions and dummy values to layout.hpp
The model and edit layers no longer include ImGui or localization headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:45:44 -04:00
shweetandClaude Opus 5.5 ab276f6f08 Move INTERPOLATION_LABELS out of the model into the frame properties wizard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:42:50 -04:00
shweetandClaude Opus 5.5 36869918e5 Stage 10b: drop stale header includes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:38:30 -04:00
shweetandClaude Opus 5.5 4c569cb1e5 Stage 10a: delete dead code, merge tiny files, unify duplicated concepts
- Dead code: util/map, util/unordered_map, unused vector/math/string/input
  helpers, Document getters, special-interpolation bake leftovers,
  triggers_sort, SnapshotStack::max_size_get, AudioStream capture API.
- Merges: util/xml, util/string, resource/strings.cpp inlined; constants
  into input.hpp; tooltip into layout; Recorder into render; onionskin,
  tools, welcome and frame properties are panel functions; timeline
  popups.cpp folded into timeline.cpp.
- util/origin.hpp replaced by model Origin (the merge setting stays a
  combo index, so saved preferences keep their meaning).
- Item type names/icons/colors moved from model/common.hpp to the
  timeline header; the model no longer includes icon/strings headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:35:22 -04:00
shweetandClaude Opus 5.5 4d16f21541 Stage 9c: Recorder for renders; no settings override; spritesheet follows selection
- Recorder (imgui/window/recorder.*) owns a render: frame times, captured
  frames on disk, per-frame trigger sounds, and assembling PNGs, spritesheets
  (Image::paste) or ffmpeg output. Start, finish, cancel and failure share one
  stop path.
- Isolated and bounded renders no longer overwrite and restore Settings, pan,
  zoom and overlay: the preview draws with view values derived for the render.
- Image::region_get replaces the region export's own pixel copy.
- Selecting layer frames focuses their spritesheet (Document::frame_references_set)
  instead of the spritesheet editor forcing it every frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:15:06 -04:00
shweetandClaude Opus 5.5 39ccfb723a Stage 9b: animations draw from a model draw list
- model::animation_draws_get returns what an animation draws at a time (root,
  group roots, layers, nulls; onion-skin samples first), with root and group
  root transforms as each item's parent and their tint/offset folded into
  layer frames.
- The preview, the About friends and animation_rect all use it; the
  preview's render lambda shrinks to drawing the list.
- Tests for draw order and root folding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:11:19 -04:00
shweetandClaude Opus 5.5 595658581f Stage 9a: shared canvas input, edit helpers and tool requirements
- CanvasInput gathers mouse, arrow keys (as a step vector), zoom and modifier
  state once; arrow nudges are one change per tool instead of four.
- frames_change_push/edit_begin_push/document_change_push replace each
  editor's own grouped frame-change command; rect_snap replaces three copies
  of grid-snap code.
- tool::INFO carries whether a tool needs a frame or a spritesheet;
  tool_cursor_update sets the cursor and the "why not" hint for both canvases.
- localize_format for localized format strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:08:57 -04:00
shweetandClaude Opus 5.5 c6c8e3598b Fix card lists: zero window padding for the list child, tooltips keep the window style
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 18:00:15 -04:00
shweetandClaude Opus 5.5 dc32483c45 Stage 8c: timeline cleanup
- One TimelineRow type for rows, row selection and drag payloads (replaces
  TimelineItemRow + TimelineRowReference).
- Frame/track selection helpers live on Document (frames_select, frame_select,
  frame_toggle, frames_range_select, frame_focus_select, focus_clear,
  track_select) instead of TimelineContext *_for(Document&) wrappers.
- Drop target and frame-move drag carry References; selection anchors are
  optionals; single-use helpers and write-only fields are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:55:14 -04:00
shweetandClaude Opus 5.5 6f7a457f8f Stage 8b: inline single-use timeline selection wrappers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:48:38 -04:00
shweetandClaude Opus 5.5 d08f59d7ba Stage 8a: panels as plain functions; content selection on the uid Selection
- New panel kit (imgui/window/panel.*): list/card drawing with multi-select,
  rename, arrow keys, drag hooks and tooltips; a list panel helper for the
  context menu, shortcuts and footer; panels build their Actions inline.
- Layers, nulls, events, sounds, spritesheets, regions, shaders and
  animations are plain functions over a small persistent state struct.
- Content items are selected by uid in the shared Selection (one kind per
  content type, plus a focus per kind); regions are those of the focused
  spritesheet. Selection survives undo, paste and removal like the timeline's.
- Combo labels are computed when drawn (Document::choices_get).
- Deletes the Window callback framework, WINDOW_FLAGS, Storage and the
  per-window selection snapshot fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:47:21 -04:00
shweetandClaude Opus 5.5 e50d76c784 Stage 7b: model/xml.cpp reads and writes tinyxml2 directly; Element tree removed
- Reading goes from tinyxml2 straight into the typed model, including legacy
  layouts (flat GroupId groups, *AnimationGroups with Index, FrameRestore
  backups, baked frames, SoundId, Overlay) and load-time id/region repair.
- Writing builds an XmlNode tree from the typed model for a set of flags:
  id renumbering, region sync, group-root and interpolation baking happen on
  typed data; groups are nested or extracted the way the old pipeline did.
- Unknown XML is kept verbatim (XmlNode) instead of being re-emitted through
  the Element writer.
- model_hash is an FNV hash of the editor-format node tree (what a save would
  write); the per-fixture hash goldens are gone.
- Deletes src/anm2 (Element, normalize, groups, hash, xml) and the unused
  util/xml attribute helpers and ElementType/ItemType table columns.
- All goldens, invariants and the local corpus are byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:20:45 -04:00
shweetandClaude Opus 5.5 0b6f67d9bd Stage 7: typed model; Element tree is internal to model/xml.cpp
- src/model: typed Model (Info, Content, nested TrackGroup/AnimationGroup,
  copy-on-write shared animations, Extras/XmlNode passthrough for unknown XML,
  layout vectors so saves stay byte-identical).
- src/edit, Document, Selection, Snapshots, every window, the timeline, wizards
  and popups now read and edit model::Model; no UI code touches Element.
- anm2/ is reduced to the XML reader/writer/normalizer behind model/xml.cpp;
  dead Element operations (merge, regions, item_add, rect, frame helpers,
  element_get/unused, deserialize) are deleted.
- Goldens, invariants, undo walk and the local corpus (1,251 files) match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:53:17 -04:00
shweetandClaude Opus 5.5 2d0f70b1e5 Stage 6: Document::change() always refreshes derived data; ChangeType removed
change() now flushes drafts, re-syncs assets and shaders, rebuilds every label
list and the uid index, and commits. Document::ChangeType, the switch in
change(), the type parameter of edit_apply/edit_run/edit_push/assets_sync,
Window::changeType and every per-call change type (about 40 sites) are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:59:44 -04:00
shweetandClaude Opus 5.5 9f43a210c5 Stage 5: content-hash AssetStore; undo records asset keys, not pixels
- resource::AssetStore (core) keeps immutable images and sounds keyed by content
  hash for the life of the document; nothing is purged until it closes.
- Undo state holds spritesheet/sound id -> asset key maps (always tracked), so
  every edit can undo texture changes; the textures-only snapshot flag
  (edit_begin(label, true) / push(message, isTextures)) and the pixel/audio
  equality helpers are gone.
- Document::texture_get/sound_get read through the store; texture_set/sound_set
  add assets; texture_edit gives the pencil a private draft that becomes a new
  asset on the next change().
- Spritesheet dirty state compares path + asset key instead of hashing pixels.
- Preview audio reads sounds through the store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:53:34 -04:00
shweetandClaude Opus 5.5 65a3546c3b Stage 4: one uid-based Selection for the timeline and animations list
- Selection { map<kind, set<uid>> uids; Handle focus; } (src/selection.*, core)
  replaces Document::reference, the frames/items/animation Storages,
  groupReferences, and the timeline's selection snapshot/lock/focus state.
- Because selection is by uid it follows elements through edits by itself;
  after an edit or undo, selection_follow only drops removed uids and moves a
  removed focus to its nearest survivor. The Stage 2 handle capture/re-resolve,
  frames_reference_normalize_for, frames_selection_sync_for and the index-based
  frame validity repair are gone.
- Document keeps a UidIndex (rebuilt on every change) and exposes
  reference_get/reference_set, selected_get/selected_set(kind),
  frame_references_get/set and animations_selected_get/set.
- UidIndex records each uid's element type.
- The animations list keeps its ImGui multi-select Storage as a per-frame mirror
  of the Selection; content windows are unchanged until Stage 8.
- tests/selection.cpp and tests/undo.cpp cover selection through inserts,
  reverses, deletes, item and animation removal, regrouping and undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:46:47 -04:00
shweetandClaude Opus 5.5 700b613c62 Stage 3: operations layer (src/edit) and one undo entry point
- src/edit/ (in anm2ed_core): frame, track, animation, region, grid and
  change-all edits as plain functions of the model. Each returns the uids of what
  it created for the UI to select; copies get fresh uids.
- Document::edit_apply snapshots, runs an operation and commits; edit_begin
  starts drag edits. window_edit, edit_command_push, snapshot_command_push,
  SnapshotKind and the tracks/frames/regions/textures snapshot kinds are gone;
  Snapshots has a single push(message, isTextures).
- Timeline, animations, regions, shaders, items, wizards, taskbar and file merge
  call the edit layer; they keep only selection, scrolling and toasts.
- Snapshots, Storage, Playback and ImGui core build into anm2ed_core, so undo is
  testable: tests/undo.cpp runs a seeded random walk of edits per fixture and
  checks every undo/redo state by hash, plus selection follow through undo.
- types::edit renamed types::edit_state (clashed with the edit namespace).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:26:53 -04:00
shweetandClaude Opus 5.5 20bfbace7a Stage 2: stable element uids and selection that follows edits
- Element::uid: runtime-only, unique per document (uids_repair on load and after
  every edit gives copies and new elements fresh uids; never serialized or hashed)
- Handle {animation, item, frame} uids and UidIndex (one walk: uid -> Reference)
- Snapshots capture the selection's handles when an edit starts and re-resolve the
  fields the edit left untouched on commit, undo and redo; replaces
  restored_snapshot_sanitize. Covers the main reference, frame/item/group
  references, timeline frame selection and the animation list selection.
- tests/selection.cpp: references survive inserts, copies, deletes, animation
  removal/reordering and regrouping

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:04:16 -04:00
shweetandClaude Opus 5.5 26ab394fe4 Stage 1: headless Image and AudioData; GPU and playback caches in the UI
- resource::Image (pixels, size, uid) replaces Texture in documents, undo and
  wizards; it lives in anm2ed_core with no GL. uid changes with the pixels.
- resource::texture::id_get uploads lazily and evicts textures not drawn in a frame
- resource::AudioData (bytes, uid) replaces Audio; resource::audio::play/stop/
  track_detach/is_playing cache decoded audio and tracks per uid
- Resources::icon_id_get shortens the icon call sites
- tests/assets.cpp covers Image png round trip, uid tracking, merge_append

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:52:34 -04:00
shweetandClaude Opus 5.5 5311c2835f Repair duplicate content ids on load; pass unknown attributes and text through
- Duplicate ids in any content list (spritesheets, shaders, layers, nulls, events,
  sounds, regions) are repaired at load: the first holder keeps the id, so tracks
  stay bound to the item they referenced (previously remapped to the wrong layer)
- Unknown attributes and element text survive save; retired BakeCount/OriginalDelay
  are still dropped. Private corpus (1,251 files) output unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:40:20 -04:00
shweetandClaude Opus 5.5 8953101245 Stage 0: continuity test suite
- anm2ed_core static library (anm2 + non-UI util + log) shared by app and tests
- Logger is inert until session_open, so the core has no SDL dependency
- doctest suite: golden round-trips of 12 synthetic fixtures across every
  serialization preset, format and merge type; save/reload invariants
  (fixed point, hash stability, game view equals re-baked game view);
  operation goldens; env-gated private corpus run (ANM2ED_CORPUS)
- ANM2ED_UPDATE_GOLDEN=1 regenerates goldens; tests/MANUAL.md UI checklist

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:34:31 -04:00
shweet 8e37b5df3b Claude Code Has Entered 2026-10-03 14:22:12 -04:00
shweetandClaude Opus 5.5 ec72a30ce0 Canvas windows, settings and manager: share view code and list I/O
- CanvasView base holds checker pan sync, zoom step, grid panel, view buttons and view context menu
- frame_parent_model_get replaces five root/group transform compositions
- Canvas builds VAOs through one helper, unifies uniform setters and frees the texture VAO/VBO/EBO (leak fix)
- Settings load/save loop over component suffix tables; unused settings Type enum removed
- Manager shares one path-list load/save for recent and autosave files
- Anonymous namespaces removed per project style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:50:13 -04:00
shweetandClaude Opus 5.5 a4638a422d Frame properties: one field table for change-all, shared widgets
- FRAME_CHANGE_SCALARS generates FrameChange fields, the frames_change apply step and change-all population
- Change-all draws component rows from tables instead of five widget lambdas and 46 aliases
- Frame properties uses one edit path (edit::COMPLETE), a vec2 field table and an X/Y flip loop
- Shared INTERPOLATION_LABELS and Document::layer_regions_get

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:44:14 -04:00
shweetandClaude Opus 5.5 30ea363c39 Timeline: drop per-frame callback rebinding and duplicated helpers
- TimelineState base carries persistent state; TimelineContext no longer copies 50 references
- 111 per-frame std::function lambdas become member functions
- Delete wrappers that re-implemented anm2 helpers
- One snapshot/edit push path, one theme color lookup, shared frame grouping/refocus/trigger filters
- Row building and bake targets loop over TRACK_CONTAINERS
- Split commands.cpp into selection.cpp, edit.cpp and menus.cpp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:38:17 -04:00