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 <keavon@keavon.com>
This commit is contained in:
Adesh Gupta 2025-02-04 17:02:56 +05:30 committed by GitHub
parent 0d8b25d37f
commit 133d872a9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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 {