Skip to content

Commit

Permalink
fix hold note rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasu3D authored and Raymonf committed Feb 12, 2024
1 parent 408aab5 commit 562fc9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions BAKKA_Editor/Rendering/RenderEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,12 +648,15 @@ private void DrawHolds(Chart chart, bool highlightSelectedNote, int selectedNote
var arc2StartAngle = newStartAngle + newArcLength;
var arc2ArcLength = -newArcLength;

// crop arcs to the right size
// crop arcs
if (note.Size != 60)
{
arc1StartAngle += 1.5f;
arc2StartAngle -= 1.5f;
arc1ArcLength -= 3.0f;
}
if (note.PrevReferencedNote.Size != 60)
{
arc2StartAngle -= 1.5f;
arc2ArcLength += 3.0f;
}

Expand All @@ -671,7 +674,7 @@ private void DrawHolds(Chart chart, bool highlightSelectedNote, int selectedNote
var arc1StartAngle = currentInfo.StartAngle;
var arc1ArcLength = currentInfo.ArcAngle;

// crop arcs to the right size
// crop arcs
if (note.Size != 60)
{
arc1StartAngle += 1.5f;
Expand Down

0 comments on commit 562fc9d

Please sign in to comment.