mirror of
https://github.com/godotengine/godot-cpp.git
synced 2025-12-31 01:48:45 +03:00
Use Math::abs to avoid ambiguity with integer abs
(cherry picked from commit 7e6c9c9370)
This commit is contained in:
committed by
David Snopek
parent
2b4512414b
commit
bdeb1987f6
@@ -149,7 +149,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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user