mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
A selected compound path (a shape with a hole, such as one made with Object › Compound Path › Make) could not be redrawn with the Pencil or the Paintbrush: at the press, find_redraw looked only for selected objects that are paths themselves, and a compound path's paths are its children. The stroke then drew a new path, which Keep selected selected in place of the compound path, so every later stroke near the shape drew a new path too: redrawing seemed to stop working. - find_redraw takes a selected compound path's member paths as well, the nearest one within Edit selected paths within of the press. - path.freehand's redraw keeps the compound path selected (or, with Keep selected off, takes it out of the selection) when the redrawn path is one of its members, so the next stroke redraws it too. Test: pencil_redraws_a_selected_compound_path redraws the outer path and then the hole of a selected compound path; it fails without this change (the first stroke draws a new path). cargo xtask ci: every step passes except one test in `test`, vectorcraft-pdf tests_import_fidelity::text_becomes_point_type, which fails the same way on unmodified main on this machine; it is unrelated to this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>