mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09: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:
@ -389,18 +389,17 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
if (particle != null)
|
if (particle != null)
|
||||||
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, particle);
|
return new LegacyJudgementPieceNew(resultComponent.Component, createDrawable, particle);
|
||||||
else
|
|
||||||
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
return new LegacyJudgementPieceOld(resultComponent.Component, createDrawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
case SkinnableSprite.SpriteComponent sprite:
|
case SkinnableSprite.SpriteComponent sprite:
|
||||||
return this.GetAnimation(sprite.LookupName, false, false);
|
return this.GetAnimation(sprite.LookupName, false, false);
|
||||||
|
|
||||||
default:
|
|
||||||
throw new UnsupportedSkinComponentException(component);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Texture? getParticleTexture(HitResult result)
|
private Texture? getParticleTexture(HitResult result)
|
||||||
|
Reference in New Issue
Block a user