diff options
Diffstat (limited to 'core/math/transform_2d.cpp')
-rw-r--r-- | core/math/transform_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/transform_2d.cpp b/core/math/transform_2d.cpp index 226076029b..2bfefe979f 100644 --- a/core/math/transform_2d.cpp +++ b/core/math/transform_2d.cpp @@ -282,7 +282,7 @@ Transform2D Transform2D::interpolate_with(const Transform2D &p_transform, const real_t dot = v1.dot(v2); - dot = CLAMP(dot, -1.0f, 1.0f); + dot = CLAMP(dot, (real_t)-1.0, (real_t)1.0); Vector2 v; |