Files
AniCraft/docs
Rob CoenenandClaude Opus 5.5 01ca8b7702 fix(xfl): read shape hints written as morphHintsList
Animate saves a shape tween's hints as `<morphHintsList>` on the tween's
start keyframe, one `<MorphHint startPoint="x, y" endPoint="x, y" key="0"/>`
per hint in letter order. The importer read only `<shapeHints>` (through
craft-xfl), so hints in real files were silently dropped.

Coordinates are decimal or `#` hex fixed point (signed 24.8) in units of
256 twips. Learned by observation: in the Animate-saved twins checked, the
decoded start points land exactly on edge vertices of the start shape.

A small app-local reader (`morph_hints.rs`) handles that layout and feeds
the existing ordering, limits, pairing and snapping, so both spellings map
to the same `ShapeHint`s. `shapeHints` is still read first. Malformed
values become "without a position" reports, never panics. ADR 0023 §9 gets
a dated note. The reader belongs in craft-xfl `shape_hints` eventually.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:18:48 +01:00
..