1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 16:07:25 +08:00

Ensure stable display order for control points in the same group

This commit is contained in:
Dean Herbert 2020-10-01 18:59:35 +09:00
parent b75c202a7e
commit 589a26a149

View File

@ -44,7 +44,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
switch (point)
{
case DifficultyControlPoint difficultyPoint:
AddInternal(new DifficultyPointPiece(difficultyPoint));
AddInternal(new DifficultyPointPiece(difficultyPoint) { Depth = -2 });
break;
case TimingControlPoint timingPoint:
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
break;
case SampleControlPoint samplePoint:
AddInternal(new SamplePointPiece(samplePoint));
AddInternal(new SamplePointPiece(samplePoint) { Depth = -1 });
break;
}
}