From 09eb1c8867ca50bbbc3b2dfc50825bcf494a5436 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 4 Jun 2020 11:28:24 +0900 Subject: [PATCH] fix copy --- Assets/VRM/UniVRM/Editor/Format/VRMEditorExporter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/VRM/UniVRM/Editor/Format/VRMEditorExporter.cs b/Assets/VRM/UniVRM/Editor/Format/VRMEditorExporter.cs index 4ee9a00bf..0386f89eb 100644 --- a/Assets/VRM/UniVRM/Editor/Format/VRMEditorExporter.cs +++ b/Assets/VRM/UniVRM/Editor/Format/VRMEditorExporter.cs @@ -80,12 +80,13 @@ namespace VRM // 使われている BlendShape だけをコピーする foreach (var i in usedBlendshapeIndexArray) { - var name = copyMesh.GetBlendShapeName(i); - var vCount = copyMesh.vertexCount; + var name = mesh.GetBlendShapeName(i); + var vCount = mesh.vertexCount; var vertices = new Vector3[vCount]; var normals = new Vector3[vCount]; var tangents = new Vector3[vCount]; mesh.GetBlendShapeFrameVertices(i, 0, vertices, normals, tangents); + copyMesh.AddBlendShapeFrame(name, 100f, vertices, normals, tangents); }