mirror of https://github.com/ppy/osu
Ensure control point group exists after move
If the control point group moved was empty, it would not be created due to a lack of ControlPointInfo.Add() calls.
This commit is contained in:
parent
b1029a124c
commit
ac44f6f679
|
@ -111,7 +111,8 @@ private void changeSelectedGroupTime(in double time)
|
|||
foreach (var cp in currentGroupItems)
|
||||
Beatmap.Value.Beatmap.ControlPointInfo.Add(time, cp);
|
||||
|
||||
SelectedGroup.Value = Beatmap.Value.Beatmap.ControlPointInfo.GroupAt(time);
|
||||
// the control point might not necessarily exist yet, if currentGroupItems was empty.
|
||||
SelectedGroup.Value = Beatmap.Value.Beatmap.ControlPointInfo.GroupAt(time, true);
|
||||
|
||||
changeHandler?.EndChange();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue