mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09: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)
|
public void Add(Easing easing, double startTime, double endTime, T startValue, T endValue)
|
||||||
{
|
{
|
||||||
if (endTime < startTime)
|
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 });
|
commands.Add(new TypedCommand { Easing = easing, StartTime = startTime, EndTime = endTime, StartValue = startValue, EndValue = endValue });
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user