mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Reset size along with scale for relative items
This commit is contained in:
parent
ec3b6e47fb
commit
fb361a4e0a
@ -249,7 +249,12 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
yield return new OsuMenuItem("Reset scale", MenuItemType.Standard, () =>
|
||||
{
|
||||
foreach (var blueprint in SelectedBlueprints)
|
||||
((Drawable)blueprint.Item).Scale = Vector2.One;
|
||||
{
|
||||
var blueprintItem = ((Drawable)blueprint.Item);
|
||||
blueprintItem.Scale = Vector2.One;
|
||||
if (RelativeSizeAxes == Axes.Both)
|
||||
blueprintItem.Size = Vector2.One;
|
||||
}
|
||||
});
|
||||
|
||||
yield return new EditorMenuItemSpacer();
|
||||
|
Loading…
Reference in New Issue
Block a user