mirror of
https://github.com/ppy/osu
synced 2025-01-01 20:02:14 +00:00
Allow selecting empty control point groups
This commit is contained in:
parent
cb23f03d4b
commit
360f9750e1
@ -147,6 +147,10 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
trackedType = null;
|
||||
else
|
||||
{
|
||||
// If the selected group has no control points, clear the tracked type.
|
||||
// Otherwise the user will be unable to select a group with no control points.
|
||||
if (selectedGroup.Value.ControlPoints.Count == 0)
|
||||
trackedType = null;
|
||||
// If the selected group only has one control point, update the tracking type.
|
||||
if (selectedGroup.Value.ControlPoints.Count == 1)
|
||||
trackedType = selectedGroup.Value?.ControlPoints.Single().GetType();
|
||||
|
Loading…
Reference in New Issue
Block a user