Skip to content

Commit 94a8fad

Browse files
authored
Merge pull request #1767 from Zylann/quaterion_abs
Use Math::abs to avoid ambiguity with integer abs
2 parents c173cc0 + 7e6c9c9 commit 94a8fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/godot_cpp/variant/quaternion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct [[nodiscard]] Quaternion {
149149
Vector3 n0 = p_v0.normalized();
150150
Vector3 n1 = p_v1.normalized();
151151
real_t d = n0.dot(n1);
152-
if (abs(d) > ALMOST_ONE) {
152+
if (Math::abs(d) > ALMOST_ONE) {
153153
if (d >= 0) {
154154
return; // Vectors are same.
155155
}

0 commit comments

Comments
 (0)