diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-10-02 16:31:09 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-10-14 16:47:42 -0400 |
commit | aeb70756287ad209f0b9d799bcd157dcaed41c17 (patch) | |
tree | e3392dfb99cc30f08f6f6b5f975289214fa81bec /core/math/bsp_tree.cpp | |
parent | 86922ff70ba533b376a6680f965f542894e8c614 (diff) |
Replace vector == and is_zero_approx(distance) with is_equal_approx
Internal changes only
Diffstat (limited to 'core/math/bsp_tree.cpp')
-rw-r--r-- | core/math/bsp_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/bsp_tree.cpp b/core/math/bsp_tree.cpp index cfa698282e..ece293d036 100644 --- a/core/math/bsp_tree.cpp +++ b/core/math/bsp_tree.cpp @@ -364,7 +364,7 @@ static int _bsp_create_node(const Face3 *p_faces, const Vector<int> &p_indices, const Face3 &f = p_faces[indices[i]]; /* - if (f.get_plane().is_almost_like(divisor_plane)) + if (f.get_plane().is_equal_approx(divisor_plane)) continue; */ @@ -412,7 +412,7 @@ static int _bsp_create_node(const Face3 *p_faces, const Vector<int> &p_indices, for (int i = 0; i < p_planes.size(); i++) { - if (p_planes[i].is_almost_like(divisor_plane)) { + if (p_planes[i].is_equal_approx(divisor_plane)) { divisor_plane_idx = i; break; } |