diff --git a/src/libslic3r/SLA/IndexedMesh.cpp b/src/libslic3r/SLA/IndexedMesh.cpp index 07c4203ab..cd1c28278 100644 --- a/src/libslic3r/SLA/IndexedMesh.cpp +++ b/src/libslic3r/SLA/IndexedMesh.cpp @@ -184,10 +184,11 @@ IndexedMesh::query_ray_hits(const Vec3d &s, const Vec3d &dir) const // Remove duplicates. They sometimes appear, for example when the ray is cast // along an axis of a cube due to floating-point approximations in igl (?) - hits.erase(std::unique(hits.begin(), hits.end(), - [](const igl::Hit& a, const igl::Hit& b) - { return a.t == b.t; }), - hits.end()); + // BBS: STUDIO-2591 A mesh with overlapping faces cannot be painted + //hits.erase(std::unique(hits.begin(), hits.end(), + // [](const igl::Hit& a, const igl::Hit& b) + // { return a.t == b.t; }), + // hits.end()); // Convert the igl::Hit into hit_result outs.reserve(hits.size());