mirror of
https://github.com/ppy/osu.git
synced 2026-06-07 02:53:38 +08:00
Ignore storyboard sprites with invalid positions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user