mirror of
https://github.com/ppy/osu
synced 2025-03-05 19:11:52 +00:00
Reset scale per axis
This commit is contained in:
parent
0add035c67
commit
175dae49c6
@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user