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:
parent
7e9d12e1d2
commit
d4731e0830
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user