diff options
| author | Ferenc Arn | 2017-01-14 14:35:39 -0600 |
|---|---|---|
| committer | Ferenc Arn | 2017-01-16 13:36:33 -0600 |
| commit | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (patch) | |
| tree | 4d45d7e600a069d7feb2a2dae3a70d6b9ddbf884 /core/math/triangle_mesh.cpp | |
| parent | d13f2f9e25e380496e706b59720cd85eed299ca2 (diff) | |
| download | godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.gz godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.tar.zst godot-6f4f9aa6ded6da027c84cc466c767334dc3d3362.zip | |
Diffstat (limited to 'core/math/triangle_mesh.cpp')
| -rw-r--r-- | core/math/triangle_mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/triangle_mesh.cpp b/core/math/triangle_mesh.cpp index 86f8bf29e..247cb90a4 100644 --- a/core/math/triangle_mesh.cpp +++ b/core/math/triangle_mesh.cpp @@ -340,7 +340,7 @@ bool TriangleMesh::intersect_segment(const Vector3& p_begin,const Vector3& p_end if (f3.intersects_segment(p_begin,p_end,&res)) { - float nd = n.dot(res); + real_t nd = n.dot(res); if (nd<d) { d=nd; @@ -462,7 +462,7 @@ bool TriangleMesh::intersect_ray(const Vector3& p_begin,const Vector3& p_dir,Vec if (f3.intersects_ray(p_begin,p_dir,&res)) { - float nd = n.dot(res); + real_t nd = n.dot(res); if (nd<d) { d=nd; |
