mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 15:53:30 -05:00
Merge pull request #1742 from ousttrue/fix/blendshapeproxy_validator_nullcheck
[exporter] BlendShapeClip の null check
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -97,6 +97,10 @@ namespace VRM
|
||||
{
|
||||
foreach (var x in avatar.Clips)
|
||||
{
|
||||
if (x == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
VRM.blendShapeMaster.Add(x, this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user