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

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

3 participants