diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-11-20 09:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 09:00:35 +0100 |
commit | b95bbd9883f7722f5465f567cf97c47d5fc003c2 (patch) | |
tree | 8d7430a0ff5050c7e93730e0b5b9522841553ea8 | |
parent | 3be6e76f220f702d41ae5efc526064f87059539b (diff) | |
parent | 8abd64dcbbe80e20b23fd526437bd068289f365c (diff) |
Merge pull request #33754 from stoofin/stoofin-patch-1
Fixed bug caused by a copy/paste error in Face3::get_closest_point_to
-rw-r--r-- | core/math/face3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/face3.cpp b/core/math/face3.cpp index ab09142b2d..666d214f98 100644 --- a/core/math/face3.cpp +++ b/core/math/face3.cpp @@ -393,7 +393,7 @@ Vector3 Face3::get_closest_point_to(const Vector3 &p_point) const { s = CLAMP(numer / denom, 0.f, 1.f); t = 1 - s; } else { - s = CLAMP(-e / c, 0.f, 1.f); + s = CLAMP(-d / a, 0.f, 1.f); t = 0.f; } } else { |