add null check

This commit is contained in:
ousttrue
2022-02-24 15:52:45 +09:00
parent d52ec016d5
commit 0863bc950c

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