Use DHO.HitObjectApplied to invalidate computation

This commit is contained in:
ekrctb
2020-11-26 14:07:40 +09:00
parent f6faf95e33
commit e43f928588
2 changed files with 13 additions and 5 deletions

View File

@ -147,7 +147,10 @@ namespace osu.Game.Rulesets.UI.Scrolling
}
}
private void onHitObjectUsageBegin(DrawableHitObject hitObject)
/// <summary>
/// Make this <see cref="DrawableHitObject"/> lifetime and layout computed in next update.
/// </summary>
internal void InvalidateHitObject(DrawableHitObject hitObject)
{
// Lifetime computation is delayed until next update because
// when the hit object is not pooled this container is not loaded here and `scrollLength` cannot be computed.