Merge pull request #105394 from Zylann/quaternion_abs

Use Math::abs to avoid ambiguity with integer abs
This commit is contained in:
Thaddeus Crews 2025-04-15 12:28:41 -05:00
commit 29dcead192
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -143,7 +143,7 @@ struct [[nodiscard]] Quaternion {
Vector3 n0 = p_v0.normalized();
Vector3 n1 = p_v1.normalized();
real_t d = n0.dot(n1);
if (abs(d) > ALMOST_ONE) {
if (Math::abs(d) > ALMOST_ONE) {
if (d >= 0) {
return; // Vectors are same.
}