mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
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>