空のマテリアルのindexずれ対策が、テスト SameMeshButDifferentMaterialExport にささった。修正

This commit is contained in:
ousttrue
2020-07-28 15:44:52 +09:00
parent b531460da0
commit e3ed40ffcd

View File

@@ -280,7 +280,11 @@ namespace UniGLTF
ExportOnlyBlendShapePosition, removeVertexColor))
{
gltf.meshes.Add(gltfMesh);
MeshBlendShapeIndexMap.Add(mesh, blendShapeIndexMap);
if (!MeshBlendShapeIndexMap.ContainsKey(mesh))
{
// 同じmeshが複数回現れた
MeshBlendShapeIndexMap.Add(mesh, blendShapeIndexMap);
}
}
Meshes = unityMeshes.Select(x => x.Mesh).ToList();
#endregion