summaryrefslogtreecommitdiffstats
path: root/core/math/vector3.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-01 01:32:07 +0100
committerGitHub <noreply@github.com>2022-03-01 01:32:07 +0100
commitde9446186dd00027921affc4183f19ab1c224322 (patch)
tree89916d57c088a6a34527713cf69934c4ff2d83af /core/math/vector3.cpp
parent9458a8f74254f1fe7f227ab92fbc3b8c9cbaa64a (diff)
parent1485924a2b90d15949fe544097ce8d00d527e9e7 (diff)
downloadredot-engine-de9446186dd00027921affc4183f19ab1c224322.tar.gz
Merge pull request #58488 from lawnjelly/float_literals_casts
Diffstat (limited to 'core/math/vector3.cpp')
-rw-r--r--core/math/vector3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector3.cpp b/core/math/vector3.cpp
index 9b3902346e..87b2ac7104 100644
--- a/core/math/vector3.cpp
+++ b/core/math/vector3.cpp
@@ -97,7 +97,7 @@ Vector3 Vector3::move_toward(const Vector3 &p_to, const real_t p_delta) const {
Vector3 v = *this;
Vector3 vd = p_to - v;
real_t len = vd.length();
- return len <= p_delta || len < CMP_EPSILON ? p_to : v + vd / len * p_delta;
+ return len <= p_delta || len < (real_t)CMP_EPSILON ? p_to : v + vd / len * p_delta;
}
Vector2 Vector3::octahedron_encode() const {