1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 03:42:58 +08:00

Fix display of skin blueprints when flipped

This commit is contained in:
Dean Herbert 2021-05-13 18:00:25 +09:00
parent 1cda55393e
commit 9f8e6979dd

View File

@ -112,8 +112,13 @@ namespace osu.Game.Skinning.Editor
drawableQuad = drawable.ScreenSpaceDrawQuad;
var quad = ToLocalSpace(drawable.ScreenSpaceDrawQuad);
box.Position = quad.TopLeft;
box.Position = new Vector2(
drawable.Scale.X < 0 ? quad.TopRight.X : quad.TopLeft.X,
drawable.Scale.Y < 0 ? quad.BottomLeft.Y : quad.TopLeft.Y
);
box.Size = quad.Size;
box.Rotation = drawable.Rotation;
}