mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:25:32 +08:00
Move transform clean-up to pooling free call
This commit is contained in:
parent
f6aa448523
commit
20b54fb904
@ -595,8 +595,6 @@ namespace osu.Game.Screens.Select
|
||||
panel.Y = item.CarouselYPosition;
|
||||
panel.Depth = i;
|
||||
|
||||
panel.ClearTransforms();
|
||||
|
||||
scrollableContent.Add(panel);
|
||||
}
|
||||
else
|
||||
|
@ -54,7 +54,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
protected override void FreeAfterUse()
|
||||
{
|
||||
base.FreeAfterUse();
|
||||
|
||||
Item = null;
|
||||
ClearTransforms();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
|
Loading…
Reference in New Issue
Block a user