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:
parent
1cda55393e
commit
9f8e6979dd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user