mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 22:39:39 -05:00
空のマテリアルのindexずれ対策が、テスト SameMeshButDifferentMaterialExport にささった。修正
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user