mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:42:54 +08:00
Reset lifetime to initial lifetime when layout is invalidated
This commit is contained in:
parent
56a0a24cba
commit
86d1225aad
@ -195,15 +195,13 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
if (!layoutCache.IsValid)
|
||||
{
|
||||
toComputeLifetime.Clear();
|
||||
|
||||
foreach (var hitObject in Objects)
|
||||
{
|
||||
if (hitObject.HitObject != null)
|
||||
toComputeLifetime.Add(hitObject);
|
||||
}
|
||||
|
||||
layoutComputed.Clear();
|
||||
|
||||
// Reset lifetime to the conservative estimation.
|
||||
// If a drawable becomes alive by this lifetime, its lifetime will be updated to a more precise lifetime in the next update.
|
||||
foreach (var entry in Entries)
|
||||
entry.SetInitialLifetime();
|
||||
|
||||
scrollingInfo.Algorithm.Reset();
|
||||
|
||||
switch (direction.Value)
|
||||
|
Loading…
Reference in New Issue
Block a user