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

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");