missed last commit (use utility function)

This commit is contained in:
Campbell Barton 2015-10-13 16:31:43 +11:00
parent 0528c16b3a
commit 8f92cbd4a7
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,7 @@ static void viewrotate_apply(ViewOpsData *vod, int x, int y)
angle = (len_v3(dvec) / (2.0f * TRACKBALLSIZE)) * M_PI;
/* Allow for rotation beyond the interval [-pi, pi] */
angle = fmod(angle + (float)M_PI, M_PI * 2) - (float)M_PI;
angle = angle_wrap_rad(angle);
/* This relation is used instead of the actual angle between vectors
* so that the angle of rotation is linearly proportional to