From 360f9750e1c3311928c57198d77c82b02ae4cfde Mon Sep 17 00:00:00 2001 From: OliBomby Date: Thu, 17 Aug 2023 16:30:18 +0200 Subject: [PATCH] Allow selecting empty control point groups --- osu.Game/Screens/Edit/Timing/ControlPointList.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game/Screens/Edit/Timing/ControlPointList.cs b/osu.Game/Screens/Edit/Timing/ControlPointList.cs index 555c36aac0..64e2d5c1a8 100644 --- a/osu.Game/Screens/Edit/Timing/ControlPointList.cs +++ b/osu.Game/Screens/Edit/Timing/ControlPointList.cs @@ -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();