1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Ignore storyboard sprites with invalid positions.

This commit is contained in:
Damnae 2017-09-10 20:08:56 +02:00
parent bc01d9a1b0
commit 59d9dc5ee7
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,9 @@ namespace osu.Game.Storyboards.Drawables
}
}
public override bool IsPresent
=> !float.IsNaN(DrawPosition.X) && !float.IsNaN(DrawPosition.Y) && base.IsPresent;
public StoryboardAnimation(AnimationDefinition definition)
{
Definition = definition;

View File

@ -49,6 +49,9 @@ namespace osu.Game.Storyboards.Drawables
}
}
public override bool IsPresent
=> !float.IsNaN(DrawPosition.X) && !float.IsNaN(DrawPosition.Y) && base.IsPresent;
public StoryboardSprite(SpriteDefinition definition)
{
Definition = definition;