Make Alt+click on a handle in the Path tool split it from its colinear pair

This commit is contained in:
Keavon Chambers 2026-04-01 23:04:56 -07:00
parent 662691f32a
commit 87bd3d41df
1 changed files with 5 additions and 0 deletions

View File

@ -798,6 +798,11 @@ impl PathToolData {
self.saved_selection_before_handle_drag = old_selection; self.saved_selection_before_handle_drag = old_selection;
} }
if handle_drag_from_anchor && dragging_only_handles {
// Alt held at drag start on a handle: break colinearity (make the handle sharp)
shape_editor.disable_colinear_handles_state_on_selected(&document.network_interface, responses);
}
if handle_drag_from_anchor && let Some((layer, point)) = shape_editor.find_nearest_point_indices(&document.network_interface, input.mouse.position, SELECTION_THRESHOLD) { if handle_drag_from_anchor && let Some((layer, point)) = shape_editor.find_nearest_point_indices(&document.network_interface, input.mouse.position, SELECTION_THRESHOLD) {
// Check that selected point is an anchor // Check that selected point is an anchor
if let (Some(point_id), Some(vector)) = (point.as_anchor(), document.network_interface.compute_modified_vector(layer)) { if let (Some(point_id), Some(vector)) = (point.as_anchor(), document.network_interface.compute_modified_vector(layer)) {