1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 00:23:01 +08:00

Merge pull request #27935 from smoogipoo/serialised-drawable-sane-defaults

Give SerialisedDrawableInfo sane defaults
This commit is contained in:
Bartłomiej Dach 2024-04-19 17:00:49 +02:00 committed by GitHub
commit 3d64ffc93e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,15 +34,15 @@ namespace osu.Game.Skinning
public float Rotation { get; set; }
public Vector2 Scale { get; set; }
public Vector2 Scale { get; set; } = Vector2.One;
public float? Width { get; set; }
public float? Height { get; set; }
public Anchor Anchor { get; set; }
public Anchor Anchor { get; set; } = Anchor.TopLeft;
public Anchor Origin { get; set; }
public Anchor Origin { get; set; } = Anchor.TopLeft;
/// <inheritdoc cref="ISerialisableDrawable.UsesFixedAnchor"/>
public bool UsesFixedAnchor { get; set; }