mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Ensure all hitobject level control points are populated before calling virtual
defaults application
This commit is contained in:
parent
d587dc6203
commit
1aff4c2238
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user