You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Use is_equal_approx() instead of vertex_snap when checking if ray is
colliding with equiplanar CSG faces.
This commit is contained in:
@@ -524,7 +524,7 @@ void CSGBrushOperation::MeshMerge::_add_distance(List<real_t> &r_intersectionsA,
|
|||||||
|
|
||||||
// Check if distance exists.
|
// Check if distance exists.
|
||||||
for (const List<real_t>::Element *E = intersections.front(); E; E = E->next())
|
for (const List<real_t>::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);
|
intersections.push_back(p_distance);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user