mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Recalculate closest anchor when origin is changed
This commit is contained in:
parent
a506f2a776
commit
635300b311
@ -240,6 +240,10 @@ namespace osu.Game.Skinning.Editor
|
|||||||
var previousOrigin = drawable.OriginPosition;
|
var previousOrigin = drawable.OriginPosition;
|
||||||
drawable.Origin = origin;
|
drawable.Origin = origin;
|
||||||
drawable.Position += drawable.OriginPosition - previousOrigin;
|
drawable.Position += drawable.OriginPosition - previousOrigin;
|
||||||
|
|
||||||
|
if (item.UsesFixedAnchor) continue;
|
||||||
|
|
||||||
|
applyClosestAnchor(drawable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user