Files
photocraft/crates/ops
David MannandClaude Opus 5.5 09562dc898 Address review: undo restores visibility a recorded step changed; non-linear Delete at the oldest state
With Make Layer Visibility Changes Undoable off, stepping through history kept every layer's
current visibility, so undoing a recorded step that changed visibility (Apply Layer Comp, a
snapshot, a compound) left the new visibility in place. Each history state now remembers the
layers whose visibility its own step changed (History::current_visibility, set by the session
when it records); Undo, Redo, History rows and non-linear Delete carry only the other layers'
visibility, so only the unrecorded eye changes survive. Deleting, purging or branching keeps the
lists consistent by merging them into the following step.

history.deleteState is now enabled in non-linear history while the oldest state is current and
later states exist, so a later state can still be deleted there.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 11:05:50 +02:00
..