Merge pull request #33754 from stoofin/stoofin-patch-1

Fixed bug caused by a copy/paste error in Face3::get_closest_point_to
This commit is contained in:
Rémi Verschelde 2019-11-20 09:00:35 +01:00 committed by GitHub
commit b95bbd9883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ Vector3 Face3::get_closest_point_to(const Vector3 &p_point) const {
s = CLAMP(numer / denom, 0.f, 1.f); s = CLAMP(numer / denom, 0.f, 1.f);
t = 1 - s; t = 1 - s;
} else { } else {
s = CLAMP(-e / c, 0.f, 1.f); s = CLAMP(-d / a, 0.f, 1.f);
t = 0.f; t = 0.f;
} }
} else { } else {