1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:13:21 +08:00

Reset child anchor position cache on hitobject position change

This commit is contained in:
Dean Herbert 2024-01-07 20:55:28 +09:00
parent dc31c66f62
commit 962c8ba4ac
No known key found for this signature in database

View File

@ -121,7 +121,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
});
PositionBindable.BindValueChanged(_ => Position = HitObject.StackedPosition);
PositionBindable.BindValueChanged(_ =>
{
Position = HitObject.StackedPosition;
childAnchorPosition = null;
});
StackHeightBindable.BindValueChanged(_ => Position = HitObject.StackedPosition);
ScaleBindable.BindValueChanged(scale => Ball.Scale = new Vector2(scale.NewValue));