去除构造函数里的版本参数

This commit is contained in:
ww-rm
2025-06-13 23:09:53 +08:00
parent 7f61ebda78
commit 125ce6fa86

View File

@@ -40,9 +40,9 @@ namespace SpineViewer.Models
/// <summary>
/// 构造函数, 可能会抛出异常
/// </summary>
public SpineObjectModel(string skelPath, string? atlasPath = null, SpineVersion? version = null)
public SpineObjectModel(string skelPath, string? atlasPath = null)
{
_spineObject = new(skelPath, atlasPath, version);
_spineObject = new(skelPath, atlasPath);
_skins = _spineObject.Data.Skins.Select(v => v.Name).ToImmutableArray();
_slotAttachments = _spineObject.Data.SlotAttachments.ToFrozenDictionary(it => it.Key, it => it.Value.Keys);
_animations = _spineObject.Data.Animations.Select(v => v.Name).ToImmutableArray();