1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-31 20:30:20 +08:00

Merge pull request #26004 from DanielPower/25049-fix-skin-element-bounding-box

Fix scale of skin element bounding box
This commit is contained in:
Bartłomiej Dach
2023-12-21 18:14:24 +01:00
committed by GitHub
Unverified
@@ -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);