From 656f23fde92468d94915be851a0e8fa59e110c2d Mon Sep 17 00:00:00 2001 From: Toshiwo Date: Fri, 5 Jul 2019 11:17:52 -0500 Subject: [PATCH] when doing Vector3 slerp it is not necessary to have it normalized. (cherry picked from commit 3aff6451143247b21c1dfb5f47d0f23cae79e8dd) --- core/math/vector3.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/math/vector3.h b/core/math/vector3.h index 683bd47c716..68f3ac3ee74 100644 --- a/core/math/vector3.h +++ b/core/math/vector3.h @@ -218,10 +218,6 @@ Vector3 Vector3::linear_interpolate(const Vector3 &p_b, real_t p_t) const { } Vector3 Vector3::slerp(const Vector3 &p_b, real_t p_t) const { -#ifdef MATH_CHECKS - ERR_FAIL_COND_V(!is_normalized(), Vector3()); -#endif - real_t theta = angle_to(p_b); return rotated(cross(p_b).normalized(), theta * p_t); }