mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 21:44:57 +00:00
brush.freehand drew the plain path when `brush` named no brush in the document or was not a string, and drew a pencil stroke for any `style` other than "brush". It now refuses an unknown name with "no brush named `<name>`", as brush.apply and brush.setCurrent do, a `brush` that is not a string, and a `style` other than "pencil" or "brush". The document does not change and no undo step is recorded. A `brush` left out or null still draws the plain path. The Paintbrush skips a tool brush or current brush that has been deleted and paints with the other, or draws the plain path when neither is in the document, so a stroke after a brush is deleted is not refused.