Skip to content

Commit 44725d0

Browse files
authored
Merge pull request #6689 from EVAST9919/fix-choppy-path
Fix `Path` being choppy with small theta difference between segments
2 parents c68f021 + 705e382 commit 44725d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osu.Framework/Graphics/Lines/Path_DrawNode.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ private void drawSegment(ref DrawableSegment segment, ref DrawableSegment prevSe
122122
// at this small angle curvature isn't noticeable, we can get away with straight-up connecting segment to the previous one.
123123
if (thetaDiff < Math.PI / max_res)
124124
{
125-
topLeft = prevSegment.TopRight;
126-
bottomLeft = prevSegment.BottomRight;
125+
if (pDot < 0f)
126+
topLeft = prevSegment.TopRight;
127+
else
128+
bottomLeft = prevSegment.BottomRight;
127129
}
128130
else
129131
{

0 commit comments

Comments
 (0)