1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Also serialise Origin out

This commit is contained in:
Dean Herbert 2021-05-11 13:39:32 +09:00
parent f53ce951dc
commit c94df672e5
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,7 @@ namespace osu.Game.Extensions
component.Rotation = info.Rotation;
component.Scale = info.Scale;
component.Anchor = info.Anchor;
component.Origin = info.Origin;
if (component is Container container)
{

View File

@ -29,6 +29,8 @@ namespace osu.Game.Screens.Play.HUD
public Anchor Anchor { get; set; }
public Anchor Origin { get; set; }
public List<SkinnableInfo> Children { get; } = new List<SkinnableInfo>();
public SkinnableInfo()
@ -43,6 +45,7 @@ namespace osu.Game.Screens.Play.HUD
Rotation = component.Rotation;
Scale = component.Scale;
Anchor = component.Anchor;
Origin = component.Origin;
if (component is Container container)
{