Skip to content

Conversation

@Annonnymmousss
Copy link
Contributor

@Keavon please review this
fixed the issue of pen tool loosing its ability to produce anchor points after open/close of node graph

Screen.Recording.2025-12-23.at.1.58.01.AM.mov

Closes #3505

for (segment_id, bezier, _, _) in vector.segment_iter() {
if selected_shape_state.is_segment_selected(segment_id) {
overlay_context.outline_select_bezier(bezier, transform);
if !selected_shape_state.selected_points().collect::<Vec<_>>().is_empty() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to do collect. Memory allocation is expensive and isn't needed. You can just do selected_shape_state.selected_points().next().is_some().

@Annonnymmousss
Copy link
Contributor Author

@0HyperCube done with changes
thankyou for guiding

@Keavon Keavon requested a review from 4adex December 25, 2025 00:48
@Keavon
Copy link
Member

Keavon commented Dec 25, 2025

!build

@github-actions
Copy link

📦 Build Complete for aa367cf
https://b99d7d83.graphite.pages.dev

@Keavon Keavon changed the title Fix pen tool anchor point issue with node graph open/close Fix Pen tool anchor point overlays disappearing forever after viewing the node graph Dec 25, 2025
@Keavon Keavon merged commit 0b38beb into GraphiteEditor:master Dec 25, 2025
3 checks passed
@Keavon
Copy link
Member

Keavon commented Dec 25, 2025

Thanks. Please comment in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Pen tool doesn't show overlays for anchors, after the node graph has been opened

4 participants