1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 05:09:57 +08:00

Fix display of skin blueprints when flipped

This commit is contained in:
Dean Herbert
2021-05-13 18:00:25 +09:00
Unverified
parent 1cda55393e
commit 9f8e6979dd
+6 -1
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;
}