You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Replace vector == and is_zero_approx(distance) with is_equal_approx
Internal changes only
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user