Files
David MannandClaude Opus 5.5 98a24d1269 Undo: a paint stroke's undo keeps the painted layer active (#1356)
Selecting a layer is not a history step, so each state kept the target it
had when it was created. Undoing a step therefore jumped back to whatever
was selected when the previous step was taken: rasterize a shape with the
Background active, select the rasterized layer, paint, Ctrl+Z, and the
Background became active again.

The state a step leaves behind now targets what was selected just before
the step (Session::edit and compound steps set the current state's target
before recording), as in Photoshop: undo of a stroke or fill keeps the
painted layer, undo of New Layer or Merge goes back to the layers selected
before it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-09 02:59:29 +02:00
..
2026-09-30 05:02:08 -04:00