1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

Fix scale of skin element bounding box

This commit is contained in:
Daniel Power 2023-12-21 08:56:39 -03:30
parent 7e9d12e1d2
commit d4731e0830

View File

@ -136,9 +136,10 @@ namespace osu.Game.Overlays.SkinEditor
{
base.Update();
Vector2 scale = drawable.DrawInfo.MatrixInverse.ExtractScale().Xy;
drawableQuad = drawable.ToScreenSpace(
drawable.DrawRectangle
.Inflate(SkinSelectionHandler.INFLATE_SIZE));
.Inflate(SkinSelectionHandler.INFLATE_SIZE * scale));
var localSpaceQuad = ToLocalSpace(drawableQuad);