From 3da84d8b086bd2d09beb5bdb89ba6beddf1e1dd6 Mon Sep 17 00:00:00 2001 From: Hallam Roberts Date: Fri, 11 Mar 2022 16:14:05 +0100 Subject: Cleanup: use M_PI_2 and M_PI_4 where possible The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288 --- intern/iksolver/intern/IK_QJacobian.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/iksolver') diff --git a/intern/iksolver/intern/IK_QJacobian.cpp b/intern/iksolver/intern/IK_QJacobian.cpp index 39c0e6eb348..ea659414b73 100644 --- a/intern/iksolver/intern/IK_QJacobian.cpp +++ b/intern/iksolver/intern/IK_QJacobian.cpp @@ -193,7 +193,7 @@ void IK_QJacobian::InvertSDLS() // DLS. The SDLS damps individual singular values, instead of using a single // damping term. - double max_angle_change = M_PI / 4.0; + double max_angle_change = M_PI_4; double epsilon = 1e-10; int i, j; -- cgit v1.2.3