From 87bd3d41df386a1204e6fe7c9c72fea4dcbd05ce Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Wed, 1 Apr 2026 23:04:56 -0700 Subject: [PATCH] Make Alt+click on a handle in the Path tool split it from its colinear pair --- editor/src/messages/tool/tool_messages/path_tool.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/src/messages/tool/tool_messages/path_tool.rs b/editor/src/messages/tool/tool_messages/path_tool.rs index 80f0a6fa..40b201a4 100644 --- a/editor/src/messages/tool/tool_messages/path_tool.rs +++ b/editor/src/messages/tool/tool_messages/path_tool.rs @@ -798,6 +798,11 @@ impl PathToolData { 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) { // Check that selected point is an anchor if let (Some(point_id), Some(vector)) = (point.as_anchor(), document.network_interface.compute_modified_vector(layer)) {