mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 10:33:07 +08:00
Make life time set after children are updated (for now).
This commit is contained in:
parent
264bf17bc2
commit
97dd80b874
@ -36,6 +36,13 @@ namespace osu.Game.Rulesets.Mania.Timing.Drawables
|
||||
// Adjust our height to account for the speed changes
|
||||
Height = (float)(1000 / TimingChange.BeatLength / TimingChange.SpeedMultiplier);
|
||||
RelativeCoordinateSpace = new Vector2(1, (float)parent.TimeSpan);
|
||||
}
|
||||
|
||||
protected override void UpdateAfterChildren()
|
||||
{
|
||||
base.UpdateAfterChildren();
|
||||
|
||||
var parent = (TimingChangeContainer)Parent;
|
||||
|
||||
LifetimeStart = TimingChange.Time - parent.TimeSpan;
|
||||
LifetimeEnd = TimingChange.Time + Content.RelativeCoordinateSpace.Y * 2;
|
||||
|
Loading…
Reference in New Issue
Block a user