mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 12:22:56 +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.
|
/// Returns the earliest start time of the commands added to this group.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public double StartTime { get; private set; }
|
public double StartTime { get; private set; } = double.MaxValue;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the latest end time of the commands added to this group.
|
/// Returns the latest end time of the commands added to this group.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public double EndTime { get; private set; }
|
public double EndTime { get; private set; } = double.MinValue;
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public double Duration => EndTime - StartTime;
|
public double Duration => EndTime - StartTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user