mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
Update the length once during construction
This commit is contained in:
parent
b4b28f8ae8
commit
5640385f48
@ -9,6 +9,9 @@ namespace osu.Game.Beatmaps
|
||||
{
|
||||
public partial class WorkingBeatmap
|
||||
{
|
||||
/// <summary>
|
||||
/// A type of <see cref="TrackVirtual"/> which provides a valid length based on the <see cref="HitObject"/>s of an <see cref="IBeatmap"/>.
|
||||
/// </summary>
|
||||
private class VirtualBeatmapTrack : TrackVirtual
|
||||
{
|
||||
private readonly IBeatmap beatmap;
|
||||
@ -16,6 +19,7 @@ namespace osu.Game.Beatmaps
|
||||
public VirtualBeatmapTrack(IBeatmap beatmap)
|
||||
{
|
||||
this.beatmap = beatmap;
|
||||
updateVirtualLength();
|
||||
}
|
||||
|
||||
protected override void UpdateState()
|
||||
|
Loading…
Reference in New Issue
Block a user