anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / misc / prusa-slicer / meshboolean-const.patch
blob7013314779d448509b1c608a4ece076569b7ea47
1 diff --git a/src/libslic3r/MeshBoolean.cpp b/src/libslic3r/MeshBoolean.cpp
2 index 31fdc35..32acbf8 100644
3 --- a/src/libslic3r/MeshBoolean.cpp
4 +++ b/src/libslic3r/MeshBoolean.cpp
5 @@ -147,12 +147,12 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh)
6 const auto &vertices = cgalmesh.vertices();
7 int vsize = int(vertices.size());
9 - for (auto &vi : vertices) {
10 + for (const auto &vi : vertices) {
11 auto &v = cgalmesh.point(vi); // Don't ask...
12 its.vertices.emplace_back(to_vec3f(v));
15 - for (auto &face : faces) {
16 + for (const auto &face : faces) {
17 auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));
19 int i = 0;