增加空动画

This commit is contained in:
ww-rm
2025-03-19 13:12:57 +08:00
parent 36d4e8c948
commit 145f4f3265
9 changed files with 83 additions and 19 deletions

View File

@@ -36,6 +36,11 @@ namespace SpineViewer.Spine
/// </summary>
public abstract class Spine : SFML.Graphics.Drawable, IDisposable
{
/// <summary>
/// 空动画标记
/// </summary>
public const string EMPTY_ANIMATION = "<Empty>";
/// <summary>
/// 实现类缓存
/// </summary>
@@ -199,7 +204,7 @@ namespace SpineViewer.Spine
/// </summary>
[Browsable(false)]
public ReadOnlyCollection<string> AnimationNames { get => animationNames.AsReadOnly(); }
protected List<string> animationNames = [];
protected List<string> animationNames = [EMPTY_ANIMATION];
/// <summary>
/// 默认动画名称