mirror of https://github.com/ppy/osu
Fix incorrect LifetimeStart and add todo regarding Expire usage
This commit is contained in:
parent
0c3286fa5e
commit
e6cfafffe9
|
@ -113,6 +113,7 @@ private void refresh()
|
|||
float rotation = (float)(Math.Atan2(distanceVector.Y, distanceVector.X) * (180 / Math.PI));
|
||||
double duration = endTime - startTime;
|
||||
|
||||
double? firstTransformStartTime = null;
|
||||
double finalTransformEndTime = startTime;
|
||||
|
||||
for (int d = (int)(spacing * 1.5); d < distance - spacing; d += spacing)
|
||||
|
@ -133,6 +134,9 @@ private void refresh()
|
|||
Scale = new Vector2(1.5f * osuEnd.Scale),
|
||||
});
|
||||
|
||||
if (firstTransformStartTime == null)
|
||||
firstTransformStartTime = fadeInTime;
|
||||
|
||||
using (fp.BeginAbsoluteSequence(fadeInTime))
|
||||
{
|
||||
fp.FadeIn(osuEnd.TimeFadeIn);
|
||||
|
@ -144,7 +148,8 @@ private void refresh()
|
|||
}
|
||||
}
|
||||
|
||||
LifetimeStart = startTime;
|
||||
// todo: use Expire() on FollowPoints and take lifetime from them when https://github.com/ppy/osu-framework/issues/3300 is fixed.
|
||||
LifetimeStart = firstTransformStartTime ?? startTime;
|
||||
LifetimeEnd = finalTransformEndTime;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue