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:
parent
bc01d9a1b0
commit
59d9dc5ee7
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user