Add better test coverage of hit lighting (and ensure reset after animation reapplication)

This commit is contained in:
Dean Herbert
2020-11-19 14:10:07 +09:00
parent ba735584fa
commit 3024ae6d86
2 changed files with 5 additions and 4 deletions

View File

@ -48,6 +48,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
bool hitLightingEnabled = config.Get<bool>(OsuSetting.HitLighting);
Lighting.Alpha = 0;
if (hitLightingEnabled && Lighting.Drawable != null)
{
// todo: this animation changes slightly based on new/old legacy skin versions.