From 133d872a9fb0f849cc44a9bc88894ff7def29d39 Mon Sep 17 00:00:00 2001 From: Adesh Gupta <148623820+4adex@users.noreply.github.com> Date: Tue, 4 Feb 2025 17:02:56 +0530 Subject: [PATCH] Fix Path tool issue where the selected points could be dragged from afar within the layer interior (#2260) Fixed point drag from inside shape Co-authored-by: Keavon Chambers --- editor/src/messages/tool/tool_messages/path_tool.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/src/messages/tool/tool_messages/path_tool.rs b/editor/src/messages/tool/tool_messages/path_tool.rs index e91ade16..70948a0b 100644 --- a/editor/src/messages/tool/tool_messages/path_tool.rs +++ b/editor/src/messages/tool/tool_messages/path_tool.rs @@ -453,6 +453,7 @@ impl PathToolData { } // We didn't find a segment path, so consider selecting the nearest shape instead else if let Some(layer) = document.click(input) { + shape_editor.deselect_all_points(); if extend_selection { responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] }); } else {