mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 05:23:05 +08:00
Always round editor rotation to integer values
This commit is contained in:
parent
cc96d275c2
commit
9f4b1f0f24
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
float oldRotation = cumulativeRotation.Value ?? 0;
|
float oldRotation = cumulativeRotation.Value ?? 0;
|
||||||
|
|
||||||
float newRotation = shouldSnap ? snap(rawCumulativeRotation, snap_step) : rawCumulativeRotation;
|
float newRotation = shouldSnap ? snap(rawCumulativeRotation, snap_step) : MathF.Round(rawCumulativeRotation);
|
||||||
newRotation = (newRotation - 180) % 360 + 180;
|
newRotation = (newRotation - 180) % 360 + 180;
|
||||||
|
|
||||||
cumulativeRotation.Value = newRotation;
|
cumulativeRotation.Value = newRotation;
|
||||||
|
Loading…
Reference in New Issue
Block a user