mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Float literals - fix main primitives to use real_t casting
Uses (real_t) casting to ensure appropriate calculations are done in 32 bit where real_t is compiled as 32 bit.
This commit is contained in:
@@ -879,7 +879,7 @@ Vector<Vector3> Geometry3D::compute_convex_mesh_points(const Plane *p_planes, in
|
||||
for (int n = 0; n < p_plane_count; n++) {
|
||||
if (n != i && n != j && n != k) {
|
||||
real_t dp = p_planes[n].normal.dot(convex_shape_point);
|
||||
if (dp - p_planes[n].d > CMP_EPSILON) {
|
||||
if (dp - p_planes[n].d > (real_t)CMP_EPSILON) {
|
||||
excluded = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user