1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +08:00

Fix anchors/origins for legacy pieces

This commit is contained in:
smoogipoo 2020-12-14 14:20:43 +09:00
parent 2e88e283d8
commit a835ca9612

View File

@ -40,7 +40,13 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
Y = scorePosition ?? 0;
if (animation != null)
InternalChild = animation;
{
InternalChild = animation.With(d =>
{
d.Anchor = Anchor.Centre;
d.Origin = Anchor.Centre;
});
}
}
public void PlayAnimation()