Merge pull request #1742 from ousttrue/fix/blendshapeproxy_validator_nullcheck

[exporter] BlendShapeClip の null check
This commit is contained in:
ousttrue
2022-07-19 18:13:33 +09:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ namespace VRM
var used = new HashSet<BlendShapeKey>();
foreach (var c in p.BlendShapeAvatar.Clips)
{
if (c == null)
{
continue;
}
var key = c.Key;
if (used.Contains(key))
{

View File

@@ -97,6 +97,10 @@ namespace VRM
{
foreach (var x in avatar.Clips)
{
if (x == null)
{
continue;
}
VRM.blendShapeMaster.Add(x, this);
}
}