diff --git a/Assets/VRM/Editor/BlendShape/VRMBlendShapeProxyValidator.cs b/Assets/VRM/Editor/BlendShape/VRMBlendShapeProxyValidator.cs index 3c1ae1d90..84cb3a2f1 100644 --- a/Assets/VRM/Editor/BlendShape/VRMBlendShapeProxyValidator.cs +++ b/Assets/VRM/Editor/BlendShape/VRMBlendShapeProxyValidator.cs @@ -24,6 +24,10 @@ namespace VRM var used = new HashSet(); foreach (var c in p.BlendShapeAvatar.Clips) { + if (c == null) + { + continue; + } var key = c.Key; if (used.Contains(key)) { diff --git a/Assets/VRM/Runtime/IO/VRMExporter.cs b/Assets/VRM/Runtime/IO/VRMExporter.cs index 77219d00b..1b5c06422 100644 --- a/Assets/VRM/Runtime/IO/VRMExporter.cs +++ b/Assets/VRM/Runtime/IO/VRMExporter.cs @@ -97,6 +97,10 @@ namespace VRM { foreach (var x in avatar.Clips) { + if (x == null) + { + continue; + } VRM.blendShapeMaster.Add(x, this); } }