From 74aee5cf12dd47e482caf1c0673062b6ac4845c3 Mon Sep 17 00:00:00 2001 From: Wojciech Jerzy Malecha Date: Mon, 11 Nov 2024 13:09:41 +0100 Subject: [PATCH] Correctly normalize the vector. --- crates/epaint/src/tessellator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/tessellator.rs b/crates/epaint/src/tessellator.rs index fdbe270914e..2764cff6f40 100644 --- a/crates/epaint/src/tessellator.rs +++ b/crates/epaint/src/tessellator.rs @@ -470,7 +470,7 @@ impl Path { self.add_point(points[i], n1c / n1c.length_sq()); } else { // miter join - self.add_point(points[i], normal / length_sq); + self.add_point(points[i], normal.normalized()); } n0 = n1;