mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 01:26:09 +00:00
brush.freehand drew the path with one edit and set the brush with a second, so one Undo left the path without its brush. The brush is now set in the same edit that draws, continues or redraws the path, and the step is named Paintbrush whatever the style. A brush for a path with no stroke (a continued or redrawn path without one, or a new filled "pencil" path while the stroke is None) was skipped and the call still succeeded. It is now refused with "cannot apply brush `<name>`: path has no stroke" before anything changes. The Paintbrush tool sends brush.freehand when a brush is current, so continuing or redrawing such a path with it now shows this error. This rule is VectorCraft's own. brush.freehand is no longer in UNCHECKED: it takes the path.freehand keys and `brush`, and any other key is refused with "unknown parameter".