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:
Hallam Roberts
2022-03-11 16:14:05 +01:00
committed by Brecht Van Lommel
parent 62a0984d72
commit 3da84d8b08
30 changed files with 51 additions and 50 deletions

View File

@@ -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;