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:
commit
b95bbd9883
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue