1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 03:42:58 +08:00

Move transform clean-up to pooling free call

This commit is contained in:
Dean Herbert 2020-10-13 13:25:45 +09:00
parent f6aa448523
commit 20b54fb904
2 changed files with 2 additions and 2 deletions

View File

@ -595,8 +595,6 @@ namespace osu.Game.Screens.Select
panel.Y = item.CarouselYPosition;
panel.Depth = i;
panel.ClearTransforms();
scrollableContent.Add(panel);
}
else

View File

@ -54,7 +54,9 @@ namespace osu.Game.Screens.Select.Carousel
protected override void FreeAfterUse()
{
base.FreeAfterUse();
Item = null;
ClearTransforms();
}
[BackgroundDependencyLoader(true)]