Skip to content

Commit

Permalink
Fixed welded model material processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin113D committed Apr 7, 2024
1 parent 4b46a9f commit e2c94c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private void CollectPolygons()
corners[k].VertexIndex = vertexIndexMap[corners[k].VertexIndex];
}

BufferMaterial material = BasicConverter.ConvertToBufferMaterial(attach.Materials[j]);
BufferMaterial material = BasicConverter.ConvertToBufferMaterial(attach.Materials[mesh.MaterialIndex]);
BufferCorner[] resultCorners = BufferMesh.GetCornerTriangleList(corners, indexList, strippified);

List<BufferCorner>? targetCorners = null;
Expand Down

0 comments on commit e2c94c0

Please sign in to comment.