1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 02:09:54 +08:00

Use null propagation for animation lookups

This commit is contained in:
Dean Herbert
2021-06-06 23:01:37 +09:00
Unverified
parent 9ebafb1ec0
commit b5f145cfa9
+1 -6
View File
@@ -417,12 +417,7 @@ namespace osu.Game.Skinning
break;
}
var animation = this.GetAnimation(component.LookupName, false, false);
if (animation != null)
return animation;
return null;
return this.GetAnimation(component.LookupName, false, false);
}
private Texture getParticleTexture(HitResult result)