From d962d6078c6ad2f0f19e5375eaf695ebeec520ba Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 24 Oct 2024 23:42:55 -0400 Subject: [PATCH] Reverted changes to Line joins --- arc-core/src/arc/graphics/g2d/Lines.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arc-core/src/arc/graphics/g2d/Lines.java b/arc-core/src/arc/graphics/g2d/Lines.java index ab9cc540..2c7b33e1 100644 --- a/arc-core/src/arc/graphics/g2d/Lines.java +++ b/arc-core/src/arc/graphics/g2d/Lines.java @@ -248,8 +248,7 @@ private static void preparePointyJoin(Vec2 A, Vec2 B, Vec2 C, Vec2 D, Vec2 E, fl prepareStraightJoin(B, D, E, halfLineWidth); return; } - //clamps length to avoid super sharp edges. this looks pretty bad, but it's better than the alternative of a 1-pixel line to infinity - float len = Mathf.clamp((float)(halfLineWidth / Math.sin(angle)), -halfLineWidth*10f, halfLineWidth*10f); + float len = (float)(halfLineWidth / Math.sin(angle)); boolean bendsLeft = angle < 0; AB.setLength(len); BC.setLength(len);