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
This commit is contained in:
committed by
Brecht Van Lommel
parent
62a0984d72
commit
3da84d8b08
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user