mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Merge pull request #20683 from peppy/storyboard-handle-backwards-events
Add support for weird storyboards which have backwards events
This commit is contained in:
commit
045eb884b5
@ -27,7 +27,10 @@ namespace osu.Game.Storyboards
|
||||
public void Add(Easing easing, double startTime, double endTime, T startValue, T endValue)
|
||||
{
|
||||
if (endTime < startTime)
|
||||
return;
|
||||
{
|
||||
(startTime, endTime) = (endTime, startTime);
|
||||
(startValue, endValue) = (endValue, startValue);
|
||||
}
|
||||
|
||||
commands.Add(new TypedCommand { Easing = easing, StartTime = startTime, EndTime = endTime, StartValue = startValue, EndValue = endValue });
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user