Skip to content

Commit

Permalink
Reverted changes to Line joins
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Oct 25, 2024
1 parent d69ed63 commit d962d60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arc-core/src/arc/graphics/g2d/Lines.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d962d60

Please sign in to comment.