diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-01 01:32:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 01:32:07 +0100 |
commit | de9446186dd00027921affc4183f19ab1c224322 (patch) | |
tree | 89916d57c088a6a34527713cf69934c4ff2d83af /core/math/quaternion.cpp | |
parent | 9458a8f74254f1fe7f227ab92fbc3b8c9cbaa64a (diff) | |
parent | 1485924a2b90d15949fe544097ce8d00d527e9e7 (diff) | |
download | redot-engine-de9446186dd00027921affc4183f19ab1c224322.tar.gz |
Merge pull request #58488 from lawnjelly/float_literals_casts
Diffstat (limited to 'core/math/quaternion.cpp')
-rw-r--r-- | core/math/quaternion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quaternion.cpp b/core/math/quaternion.cpp index ade252d628..0a650a8578 100644 --- a/core/math/quaternion.cpp +++ b/core/math/quaternion.cpp @@ -129,7 +129,7 @@ Quaternion Quaternion::slerp(const Quaternion &p_to, const real_t &p_weight) con // calculate coefficients - if ((1.0f - cosom) > CMP_EPSILON) { + if ((1.0f - cosom) > (real_t)CMP_EPSILON) { // standard case (slerp) omega = Math::acos(cosom); sinom = Math::sin(omega); |