Obj: try to fix Linux tests
Related to previous D14368 bug fix, the sorting operator was not necessarily a stable order sort.
This commit is contained in:
@@ -207,7 +207,10 @@ void OBJMesh::calc_poly_order()
|
||||
blender::parallel_sort(poly_order_.begin(), poly_order_.end(), [&](int a, int b) {
|
||||
int mat_a = mpolys[a].mat_nr;
|
||||
int mat_b = mpolys[b].mat_nr;
|
||||
return mat_a < mat_b;
|
||||
if (mat_a != mat_b) {
|
||||
return mat_a < mat_b;
|
||||
}
|
||||
return a < b;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user