1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 07:22:55 +08:00

Ensure all hitobject level control points are populated before calling virtual defaults application

This commit is contained in:
Dean Herbert 2021-09-01 18:26:00 +09:00
parent d587dc6203
commit 1aff4c2238

View File

@ -106,8 +106,6 @@ namespace osu.Game.Rulesets.Objects
/// <param name="cancellationToken">The cancellation token.</param>
public void ApplyDefaults(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty, CancellationToken cancellationToken = default)
{
ApplyDefaultsToSelf(controlPointInfo, difficulty);
if (controlPointInfo is LegacyControlPointInfo legacyInfo)
{
// This is done here since ApplyDefaultsToSelf may be used to determine the end time
@ -120,6 +118,8 @@ namespace osu.Game.Rulesets.Objects
DifficultyControlPoint ??= DifficultyControlPoint.DEFAULT;
}
ApplyDefaultsToSelf(controlPointInfo, difficulty);
nestedHitObjects.Clear();
CreateNestedHitObjects(cancellationToken);