Extending from point allows a handle to be colinear with 2 others

#4618 · open · 2 comments

View on GitHub ↗

0HyperCube

## Reproduction - New document - Use pen tool - Draw path containing an anchor with colinear handles (not an end point and not broken) - Extend from the anchor with colinear handles by clicking (do not drag) - Finish the path - Use path tool - Drag the handle noting how the handle tries to be colinear with two different handles causing strange behaviour. ## Video https://github.com/user-attachments/assets/274bf06a-38c2-4ff4-9378-73171a9f6f68 ## Resolution When extending from an existing point that is already connected to two segments, do not make it colinear with the existing path. If the user does not drag to place the handle then it should probably be placed on top of the anchor. When there is only one segment connected to a point, it may be desirable (?) to keep the current behaviour. ## Relevant code https://github.com/GraphiteEditor/Graphite/blob/ae321b3409113b238f1482a5ad71cbfff6929602/editor/src/messages/tool/tool_messages/pen_tool.rs#L1397-L1401 https://github.com/GraphiteEditor/Graphite/blob/ae321b3409113b238f1482a5ad71cbfff6929602/editor/src/messages/tool/tool_messages/pen_tool.rs#L834-L842

Comments

parthdude07

@0HyperCube I want to solve this issue.

0HyperCube

Hi @parthdude07. You are welcome to attempt any issue you wish. Please see the [contributor guide](https://graphite.art/volunteer/guide/) for more information. Note issues are not assigned to new contributors until they open a draft PR to avoid ghost assignments.