mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 04:09:53 +08:00
Simplify pre-checks in HitObjectApplied delegate
This commit is contained in:
@@ -109,11 +109,6 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
|
||||
private void onHitObjectApplied(DrawableHitObject? drawableObject = null)
|
||||
{
|
||||
if (drawableObject != null && drawableObject is not DrawableSlider)
|
||||
return;
|
||||
|
||||
ballAnimation.ClearFrames();
|
||||
|
||||
double frameDelay;
|
||||
|
||||
if (drawableObject?.HitObject != null)
|
||||
@@ -127,6 +122,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
else
|
||||
frameDelay = LegacySkinExtensions.SIXTY_FRAME_TIME;
|
||||
|
||||
ballAnimation.ClearFrames();
|
||||
foreach (var texture in ballTextures)
|
||||
ballAnimation.AddFrame(texture, frameDelay);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user