Repository navigation
Pencil: Edit Selected Paths redraws a selected compound path - #4220
Merged
Merged
Conversation
4 tasks done
Contributor
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
… paths 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>
bflatastic
force-pushed
the
pencil-redraw-compound
branch
from
October 26, 2026 04:52
f541f94 to
2047676
Compare
Member
|
Merged, thanks @ncic! A shape with a hole now redraws like any other path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4219.
A selected compound path (a shape with a hole) couldn't be redrawn with the Pencil or the Paintbrush. The stroke drew a new path instead, which then took over the selection, so redrawing seemed to stop working for the rest of the session on that shape.
What changes
find_redrawnow also looks at the paths inside a selected compound path and picks the nearest one within Edit selected paths within.path.freehandkeeps the compound path selected (or, with Keep selected off, takes it out of the selection), so the next stroke redraws it too.Tests
pencil_redraws_a_selected_compound_pathredraws the outer path and then the hole of a selected compound path, with no new path drawn and the compound path still selected. It fails without this change.cargo xtask cipasses (all 12 steps, Linux, Rust 1.99.0).Worked together with Claude Code Opus 5.5 High ❤️
Summary by CodeRabbit