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:
parent
0d8b25d37f
commit
133d872a9f
|
|
@ -453,6 +453,7 @@ impl PathToolData {
|
||||||
}
|
}
|
||||||
// We didn't find a segment path, so consider selecting the nearest shape instead
|
// We didn't find a segment path, so consider selecting the nearest shape instead
|
||||||
else if let Some(layer) = document.click(input) {
|
else if let Some(layer) = document.click(input) {
|
||||||
|
shape_editor.deselect_all_points();
|
||||||
if extend_selection {
|
if extend_selection {
|
||||||
responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] });
|
responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] });
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue