From c403847cc341cb281f844bec4019a12e41a7daaf Mon Sep 17 00:00:00 2001 From: 0hypercube <0hypercube@gmail.com> Date: Mon, 24 Oct 2022 20:53:29 +0100 Subject: [PATCH] Fix bad length --- editor/src/messages/tool/common_functionality/shape_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/tool/common_functionality/shape_editor.rs b/editor/src/messages/tool/common_functionality/shape_editor.rs index 90645615ad..07a830a2aa 100644 --- a/editor/src/messages/tool/common_functionality/shape_editor.rs +++ b/editor/src/messages/tool/common_functionality/shape_editor.rs @@ -361,7 +361,7 @@ impl ShapeEditor { // To find the length of the new tangent we just take the distance to the anchor and divide by 3 (pretty arbitrary) let length_previous = previous_position.map(|point| (point.position - anchor_position).length() / 3.); - let length_next = next_position.map(|point| (point.position - anchor_position) / 3.); + let length_next = next_position.map(|point| (point.position - anchor_position).length() / 3.); // Use the position relative to the anchor let relative_previous_normalised = previous_position.map(|point| (point.position - anchor_position).normalize());