1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 00:42:55 +08:00

Recalculate closest anchor when origin is changed

This commit is contained in:
Robin Avery 2021-06-11 06:28:30 -04:00
parent a506f2a776
commit 635300b311
No known key found for this signature in database
GPG Key ID: 0496DF10CEF7E226

View File

@ -240,6 +240,10 @@ namespace osu.Game.Skinning.Editor
var previousOrigin = drawable.OriginPosition;
drawable.Origin = origin;
drawable.Position += drawable.OriginPosition - previousOrigin;
if (item.UsesFixedAnchor) continue;
applyClosestAnchor(drawable);
}
}