mirror of
https://github.com/ppy/osu.git
synced 2026-05-22 23:00:52 +08:00
Reset scale per axis
This commit is contained in:
@@ -252,8 +252,11 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
{
|
||||
var blueprintItem = ((Drawable)blueprint.Item);
|
||||
blueprintItem.Scale = Vector2.One;
|
||||
if (RelativeSizeAxes == Axes.Both)
|
||||
blueprintItem.Size = Vector2.One;
|
||||
|
||||
if (blueprintItem.RelativeSizeAxes.HasFlagFast(Axes.X))
|
||||
blueprintItem.Width = 1;
|
||||
if (blueprintItem.RelativeSizeAxes.HasFlagFast(Axes.Y))
|
||||
blueprintItem.Height = 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user