From 0863bc950cb83431130447b1de7781b2ae312e4d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 24 Feb 2022 15:52:45 +0900 Subject: [PATCH] add null check --- Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshImporter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshImporter.cs index 7274a6654..5fcb06ca1 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MeshIO/MeshImporter.cs @@ -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");