Merge pull request #12872 from peppy/disable-skin-editor-border

This commit is contained in:
Bartłomiej Dach 2021-05-19 22:42:38 +02:00 committed by GitHub
commit b8c1ffdef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,6 @@ namespace osu.Game.Skinning.Editor
if (visibility.NewValue == Visibility.Visible)
{
target.Masking = true;
target.BorderThickness = 5;
target.BorderColour = colours.Yellow;
target.AllowScaling = false;
target.RelativePositionAxes = Axes.Both;
@ -75,7 +73,6 @@ namespace osu.Game.Skinning.Editor
}
else
{
target.BorderThickness = 0;
target.AllowScaling = true;
target.ScaleTo(1, SkinEditor.TRANSITION_DURATION, Easing.OutQuint).OnComplete(_ => target.Masking = false);