From 22ff17793c836b0d00d2417e0ac45bb96d628a3a Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Mon, 29 Jun 2020 17:52:36 +0100 Subject: [PATCH] Use is_equal_approx() instead of vertex_snap when checking if ray is colliding with equiplanar CSG faces. --- modules/csg/csg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csg/csg.cpp b/modules/csg/csg.cpp index 660deec8b57..b34cfbfaab9 100644 --- a/modules/csg/csg.cpp +++ b/modules/csg/csg.cpp @@ -524,7 +524,7 @@ void CSGBrushOperation::MeshMerge::_add_distance(List &r_intersectionsA, // Check if distance exists. for (const List::Element *E = intersections.front(); E; E = E->next()) - if (Math::abs(**E - p_distance) < vertex_snap) return; + if (Math::is_equal_approx(**E, p_distance)) return; intersections.push_back(p_distance); }