mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Fix group start/end time not calculating correctly
This commit is contained in:
parent
585ab59768
commit
9b77d8c972
@ -30,13 +30,13 @@ namespace osu.Game.Storyboards.Commands
|
||||
/// Returns the earliest start time of the commands added to this group.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public double StartTime { get; private set; }
|
||||
public double StartTime { get; private set; } = double.MaxValue;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the latest end time of the commands added to this group.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public double EndTime { get; private set; }
|
||||
public double EndTime { get; private set; } = double.MinValue;
|
||||
|
||||
[JsonIgnore]
|
||||
public double Duration => EndTime - StartTime;
|
||||
|
Loading…
Reference in New Issue
Block a user