From 0b38beb79b437bebf3846b93e82ed2024e4565c9 Mon Sep 17 00:00:00 2001 From: Jatin Bharti Date: Thu, 25 Dec 2025 19:13:26 +0530 Subject: [PATCH] Fix Pen tool anchor point overlays disappearing forever after viewing the node graph (#3523) * Promote vector meshes from experimental by removing it from preferences * fix : pen tool anchor point issue with node graph open/close * fix : Memory allocation by removing .collct() * fix : remove the reduntant if condition --------- Co-authored-by: Keavon Chambers Co-authored-by: Adesh Gupta <148623820+4adex@users.noreply.github.com> --- .../portfolio/document/overlays/utility_functions.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editor/src/messages/portfolio/document/overlays/utility_functions.rs b/editor/src/messages/portfolio/document/overlays/utility_functions.rs index 775e1503..e1def6c3 100644 --- a/editor/src/messages/portfolio/document/overlays/utility_functions.rs +++ b/editor/src/messages/portfolio/document/overlays/utility_functions.rs @@ -135,10 +135,7 @@ pub fn path_overlays(document: &DocumentMessageHandler, draw_handles: DrawHandle overlay_context.outline_vector(&vector, transform); } - let Some(selected_shape_state) = shape_editor.selected_shape_state.get_mut(&layer) else { - continue; - }; - + let selected_shape_state = shape_editor.selected_shape_state.entry(layer).or_default(); // Get the selected segments and then add a bold line overlay on them for (segment_id, bezier, _, _) in vector.segment_iter() { if selected_shape_state.is_segment_selected(segment_id) {