Use is_equal_approx() instead of vertex_snap when checking if ray is

colliding with equiplanar CSG faces.
This commit is contained in:
Marcel Admiraal 2020-06-29 17:52:36 +01:00
parent 1a559c9889
commit 63f4e92195
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ void CSGBrushOperation::MeshMerge::_add_distance(List<real_t> &r_intersectionsA,
// Check if distance exists.
for (const List<real_t>::Element *E = intersections.front(); E; E = E->next()) {
if (Math::abs(**E - p_distance) < vertex_snap) {
if (Math::is_equal_approx(**E, p_distance)) {
return;
}
}