mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 13:48:13 +08:00
Fix path tool select
This commit is contained in:
@@ -349,7 +349,6 @@ 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) {
|
||||||
responses.add(DocumentMessage::StartTransaction);
|
|
||||||
if add_to_selection {
|
if add_to_selection {
|
||||||
responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] });
|
responses.add(NodeGraphMessage::SelectedNodesAdd { nodes: vec![layer.to_node()] });
|
||||||
} else {
|
} else {
|
||||||
@@ -359,6 +358,7 @@ impl PathToolData {
|
|||||||
self.previous_mouse_position = document.metadata().document_to_viewport.inverse().transform_point2(input.mouse.position);
|
self.previous_mouse_position = document.metadata().document_to_viewport.inverse().transform_point2(input.mouse.position);
|
||||||
shape_editor.select_connected_anchors(document, layer, input.mouse.position);
|
shape_editor.select_connected_anchors(document, layer, input.mouse.position);
|
||||||
|
|
||||||
|
responses.add(DocumentMessage::StartTransaction);
|
||||||
PathToolFsmState::Dragging
|
PathToolFsmState::Dragging
|
||||||
}
|
}
|
||||||
// Start drawing a box
|
// Start drawing a box
|
||||||
|
|||||||
Reference in New Issue
Block a user