fix MeshExportUtil.BlendShapeBuffe size. mesh.index count to submesh.index count.

This commit is contained in:
ousttrue
2021-06-07 19:43:18 +09:00
parent f6dc69d250
commit cb807bafa9

View File

@@ -89,7 +89,7 @@ namespace UniGLTF
// blendShape(morph target)
for (int j = 0; j < mesh.blendShapeCount; ++j)
{
var blendShape = new MeshExportUtil.BlendShapeBuffer(indices.Length);
var blendShape = new MeshExportUtil.BlendShapeBuffer(usedIndices.Count);
// aggriage morph target
mesh.GetBlendShapeFrameVertices(j, 0, blendShapePositions, blendShapeNormals, null);