Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
21 lines
742 B
Diff
21 lines
742 B
Diff
Fix build with cgal 5.6.1+
|
|
|
|
diff --git a/src/libslic3r/MeshBoolean.cpp b/src/libslic3r/MeshBoolean.cpp
|
|
index 50bbc099..b05245d3 100644
|
|
--- a/src/libslic3r/MeshBoolean.cpp
|
|
+++ b/src/libslic3r/MeshBoolean.cpp
|
|
@@ -200,12 +200,12 @@ indexed_triangle_set cgal_to_indexed_triangle_set(const _Mesh &cgalmesh)
|
|
const auto &vertices = cgalmesh.vertices();
|
|
int vsize = int(vertices.size());
|
|
|
|
- for (auto &vi : vertices) {
|
|
+ for (const auto &vi : vertices) {
|
|
auto &v = cgalmesh.point(vi); // Don't ask...
|
|
its.vertices.emplace_back(to_vec3f(v));
|
|
}
|
|
|
|
- for (auto &face : faces) {
|
|
+ for (const auto &face : faces) {
|
|
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));
|
|
|
|
int i = 0;
|