Merge pull request #1549 from ousttrue/fix/blendshape_normals_null

add null check
This commit is contained in:
ousttrue 2022-02-24 17:48:54 +09:00 committed by GitHub
commit 4cfdb3dd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,10 @@ namespace UniGLTF
await awaitCaller.Run(() =>
{
positions = blendShape.Positions.ToArray();
normals = blendShape.Normals.ToArray();
if (blendShape.Normals != null)
{
normals = blendShape.Normals.ToArray();
}
});
Profiler.BeginSample("MeshImporter.BuildBlendShapeAsync");