1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 00:51:22 +08:00

Apply the default SampleControlPoint if not externally provided

This is mostly to handle tests for now, as generally this should be
provided by an external source in all other cases.
This commit is contained in:
Dean Herbert
2021-08-30 17:21:05 +09:00
Unverified
parent 2115d6f93e
commit 4da2dca339
+4
View File
@@ -112,6 +112,10 @@ namespace osu.Game.Rulesets.Objects
// This is done here since ApplyDefaultsToSelf may be used to determine the end time
SampleControlPoint = legacyInfo.SamplePointAt(this.GetEndTime() + control_point_leniency);
}
else
{
SampleControlPoint ??= SampleControlPoint.DEFAULT;
}
nestedHitObjects.Clear();