1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 20:37:26 +08:00

fix horizontal flip rotation

This commit is contained in:
OliBomby 2024-07-16 13:19:01 +02:00
parent c18814817b
commit 7dc006f9ba

View File

@ -125,7 +125,7 @@ namespace osu.Game.Rulesets.Osu.Edit
// however it's still possible to achieve that flip by combining multiple flips over the other axes. // however it's still possible to achieve that flip by combining multiple flips over the other axes.
flipAxis = direction == Direction.Vertical flipAxis = direction == Direction.Vertical
? GeometryUtils.RotateVector(Vector2.UnitX, -((gridToolbox.GridLinesRotation.Value + 390) % 60 + 60)) ? GeometryUtils.RotateVector(Vector2.UnitX, -((gridToolbox.GridLinesRotation.Value + 390) % 60 + 60))
: GeometryUtils.RotateVector(Vector2.UnitX, -((gridToolbox.GridLinesRotation.Value + 390) % 60 - 60)); : GeometryUtils.RotateVector(Vector2.UnitX, -((gridToolbox.GridLinesRotation.Value + 360) % 60 - 30));
break; break;
} }
} }