mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Reset lifetime to initial lifetime when layout is invalidated
This commit is contained in:
@ -195,15 +195,13 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
if (!layoutCache.IsValid)
|
if (!layoutCache.IsValid)
|
||||||
{
|
{
|
||||||
toComputeLifetime.Clear();
|
toComputeLifetime.Clear();
|
||||||
|
|
||||||
foreach (var hitObject in Objects)
|
|
||||||
{
|
|
||||||
if (hitObject.HitObject != null)
|
|
||||||
toComputeLifetime.Add(hitObject);
|
|
||||||
}
|
|
||||||
|
|
||||||
layoutComputed.Clear();
|
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();
|
scrollingInfo.Algorithm.Reset();
|
||||||
|
|
||||||
switch (direction.Value)
|
switch (direction.Value)
|
||||||
|
Reference in New Issue
Block a user