Skip to content

Commit

Permalink
Fix issue #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasu3D committed Apr 29, 2024
1 parent 89b2283 commit d86daa2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Editor/ChartEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,16 +868,16 @@ public void DeleteSelection()
List<Note> checkedHolds = [];
List<Note> checkedCurrentHolds = [];

foreach (Note selected in SelectedNotes.OrderByDescending(x => x.BeatData.FullTick))
{
addOperation(selected);
}

if (SelectedNotes.Count == 0 && HighlightedElement is Note highlighted)
{
addOperation(highlighted);
HighlightedElement = Chart.Notes.LastOrDefault(x => x.BeatData.FullTick <= highlighted.BeatData.FullTick && x != highlighted);
}

foreach (Note selected in SelectedNotes.OrderByDescending(x => x.BeatData.FullTick))
{
addOperation(selected);
}

// Temporarily undo all hold operations, then add them to the operationList
foreach (DeleteHoldNote deleteHoldOp in holdOperationList)
Expand Down

0 comments on commit d86daa2

Please sign in to comment.