mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
The History Brush, Fill > History and the Art History Brush restore from one per-document source. With none set in the History panel the engine asked the history for it, and the history answers row 0: the oldest state still held. Once the history is full row 0 is a recent step, so a click painted that step instead of the image the document opened with. The default now resolves to the open snapshot, the first History panel snapshot (the document as opened, named after it), which the states' trimming never removes. The engine records its id per document, together with the id of a state chosen with history.setSource - the history reports row 0 both for a chosen row 0 and for nothing chosen, and it must not be edited here. Deleting that snapshot leaves the default empty, as for any deleted source; with History Options > Automatically Create First Snapshot off the default keeps today's behaviour, the oldest state held.