mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 05:24:44 +00:00
Invert Colors, the Convert to commands, Saturate, Adjust Color Balance, the Blend commands and Recolor Artwork recorded an undo step even when they changed no color, for example Invert Colors with fills and strokes off, Saturate at 0 or a second Blend Front to Back. The empty step also cleared the redo steps. paint.invert and paint.complement on whole objects, Apply as Filter (addon.color.filter) and Apply Nearest Swatch run the same pass and did the same. These commands now run on a copy of the document and record the step only when something changed. Convert to Indexed Color uses the same helper. Recolor Artwork also compares the documents when it counted no recolored paint, so rewriting a color group's swatches still records its step.