diff --git a/Assets/VRM/Runtime/BlendShape/BlendShapeAvatar.cs b/Assets/VRM/Runtime/BlendShape/BlendShapeAvatar.cs index 814fe574f..6129050e3 100644 --- a/Assets/VRM/Runtime/BlendShape/BlendShapeAvatar.cs +++ b/Assets/VRM/Runtime/BlendShape/BlendShapeAvatar.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; using UniGLTF; using System.IO; -using UnityEngine.Serialization; #if UNITY_EDITOR using UnityEditor; #endif @@ -14,34 +13,23 @@ namespace VRM [CreateAssetMenu(menuName = "VRM/BlendShapeAvatar")] public class BlendShapeAvatar : ScriptableObject { - [FormerlySerializedAs("Clips")] [SerializeField] - private List clips = new List(); - - public List Clips - { - get - { - RemoveNullClip(); - return clips; - } - set => clips = value; - } + public List Clips = new List(); /// /// NullのClipを削除して詰める /// public void RemoveNullClip() { - if (clips == null) + if (Clips == null) { return; } - for (int i = clips.Count - 1; i >= 0; --i) + for (int i = Clips.Count - 1; i >= 0; --i) { - if (clips[i] == null) + if (Clips[i] == null) { - clips.RemoveAt(i); + Clips.RemoveAt(i); } } }