mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Fix distance snap grid circles not correctly being centered on snap point
This commit is contained in:
parent
f5eb629709
commit
d965d39c44
@ -63,13 +63,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
for (int i = 0; i < requiredCircles; i++)
|
||||
{
|
||||
float diameter = (offset + (i + 1) * DistanceBetweenTicks) * 2;
|
||||
const float thickness = 4;
|
||||
|
||||
AddInternal(new Ring(ReferenceObject, GetColourForIndexFromPlacement(i))
|
||||
{
|
||||
Position = StartPosition,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(diameter),
|
||||
InnerRadius = 4 * 1f / diameter,
|
||||
Size = new Vector2(diameter + thickness / 2),
|
||||
InnerRadius = thickness * 1f / diameter,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user