1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 12:03:21 +08:00

Merge branch 'master' into markdown-wiki

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-26 15:25:46 +07:00
commit db8ccad0b8
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -59,6 +59,10 @@ namespace osu.Game.Skinning.Editor
// the selection quad is always upright, so use an AABB rect to make mutating the values easier.
var selectionRect = getSelectionQuad().AABBFloat;
// If the selection has no area we cannot scale it
if (selectionRect.Area == 0)
return false;
// copy to mutate, as we will need to compare to the original later on.
var adjustedRect = selectionRect;