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
commit a7326e3891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);