mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
d8b8cc5a07
cgal bump in #292492 broke the build
20 lines
722 B
Diff
20 lines
722 B
Diff
diff --git a/src/libslic3r/MeshBoolean.cpp b/src/libslic3r/MeshBoolean.cpp
|
|
index 31fdc35..32acbf8 100644
|
|
--- a/src/libslic3r/MeshBoolean.cpp
|
|
+++ b/src/libslic3r/MeshBoolean.cpp
|
|
@@ -147,12 +147,12 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(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;
|