Files
photocraft/crates/engine
a299bf9f6c Integration: Trap round trip, Match Color source None, Split Channels only on single-layer images (#10630)
- A Trap step recorded without Wdth loaded as {} and saved back as Wdth 1 px,
  so it reloaded as {"width":1}. It now loads as width 1 (what the command
  plays), so load -> save -> load gives the same step.
- The Match Color dialog records Source "None" as "source": -1, which the
  export refused because "source" wasn't an allowed key, so a Match Color
  recorded in PhotoCraft could never be saved. A null or negative source
  (and a sourceLayer with it) is now written as the source-less event; a
  real source (>= 0) is still refused.
- Split Channels closes the original, but split and its enabled check never
  checked the layer count, so a played SplC split and closed a layered
  document with no undo. Like the reference application it now refuses
  (Err, document untouched and open) a document with more than one layer
  (a hidden one counts) or a lone group; a Background-only image or a lone
  normal layer still splits.

Co-authored-by: hectorviov <1501713+hectorviov@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 03:11:30 +01:00
..