mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:03:05 +08:00
Don't throw if LegacySkin
doesn't have a transformer encapsulating it
This allows for more flexibility in lookups.
This commit is contained in:
parent
1c93551590
commit
fd20515a6d
@ -389,18 +389,17 @@ namespace osu.Game.Skinning
|
||||
|
||||
if (particle != null)
|
||||
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, particle);
|
||||
else
|
||||
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
||||
|
||||
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
case SkinnableSprite.SpriteComponent sprite:
|
||||
return this.GetAnimation(sprite.LookupName, false, false);
|
||||
|
||||
default:
|
||||
throw new UnsupportedSkinComponentException(component);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private Texture? getParticleTexture(HitResult result)
|
||||
|
Loading…
Reference in New Issue
Block a user