fix mesh importer

This commit is contained in:
Kohei-Yanagida
2019-09-24 16:32:25 +09:00
parent 0aee5e6afe
commit 935913ca13

View File

@@ -450,7 +450,7 @@ namespace UniGLTF
{
mesh.AddBlendShapeFrame(blendShape.Name, FRAME_WEIGHT,
blendShape.Positions.ToArray(),
(meshContext.normals != null && meshContext.normals.Length == mesh.vertexCount) ? blendShape.Normals.ToArray() : null,
(meshContext.normals != null && meshContext.normals.Length == mesh.vertexCount && blendShape.Normals.Count() == blendShape.Positions.Count()) ? blendShape.Normals.ToArray() : null,
null
);
}