Skip to content

Commit

Permalink
[mesh] fix lambda return type
Browse files Browse the repository at this point in the history
  • Loading branch information
cvere committed Aug 5, 2019
1 parent 90a24a1 commit 08ed5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aliceVision/mesh/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ int Mesh::subdivideMesh(StaticVector<int>& trisCamsId, float maxEdgeLength)
if(trianglesToSubdivide.find(triangleId) != trianglesToSubdivide.end())
{
// sort edges in ascending & adjacent order in the triangle coordinate system
std::sort(trianglesToSubdivide[triangleId].begin(), trianglesToSubdivide[triangleId].end(), [](edge& a, edge& b){
std::sort(trianglesToSubdivide[triangleId].begin(), trianglesToSubdivide[triangleId].end(), [](edge& a, edge& b) -> bool {
return (a.localIdB == b.localIdA) ;
});
subdivideTriangle(triangleId, trianglesToSubdivide.at(triangleId), new_tris, new_trisUvIds, new_uvCoords, new_trisMtlIds);
Expand Down

0 comments on commit 08ed5d4

Please sign in to comment.