mirror of https://github.com/ppy/osu
Also serialise `Origin` out
This commit is contained in:
parent
f53ce951dc
commit
c94df672e5
|
@ -55,6 +55,7 @@ public static void ApplySerialisedInformation(this Drawable component, Skinnable
|
|||
component.Rotation = info.Rotation;
|
||||
component.Scale = info.Scale;
|
||||
component.Anchor = info.Anchor;
|
||||
component.Origin = info.Origin;
|
||||
|
||||
if (component is Container container)
|
||||
{
|
||||
|
|
|
@ -29,6 +29,8 @@ public class SkinnableInfo : IJsonSerializable
|
|||
|
||||
public Anchor Anchor { get; set; }
|
||||
|
||||
public Anchor Origin { get; set; }
|
||||
|
||||
public List<SkinnableInfo> Children { get; } = new List<SkinnableInfo>();
|
||||
|
||||
public SkinnableInfo()
|
||||
|
@ -43,6 +45,7 @@ public SkinnableInfo(Drawable component)
|
|||
Rotation = component.Rotation;
|
||||
Scale = component.Scale;
|
||||
Anchor = component.Anchor;
|
||||
Origin = component.Origin;
|
||||
|
||||
if (component is Container container)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue