Reset scale per axis

This commit is contained in:
Dean Herbert 2023-11-10 14:43:51 +09:00
parent 0add035c67
commit 175dae49c6
No known key found for this signature in database

View File

@ -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;
}
});