mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
fix MeshExportUtil.BlendShapeBuffe size. mesh.index count to submesh.index count.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user