Skip to content

Commit

Permalink
Fix osu!catch fruit rotation being applied too late
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 17, 2024
1 parent d34e8ea commit 785a725
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions osu.Game.Rulesets.Catch/Objects/Drawables/DrawableFruit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Skinning;

Expand All @@ -28,11 +27,10 @@ private void load()
_ => new FruitPiece());
}

protected override void UpdateInitialTransforms()
protected override void OnApply()
{
base.UpdateInitialTransforms();

ScalingContainer.RotateTo((RandomSingle(1) - 0.5f) * 40);
base.OnApply();
ScalingContainer.Rotation = (RandomSingle(1) - 0.5f) * 40;
}
}
}

0 comments on commit 785a725

Please sign in to comment.