Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-10-13 08:31:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-13 08:31:43 +0300
commit8f92cbd4a79764771e4283d9ede589891a5e6bbf (patch)
tree01db8da4f969c1f42f1d272f9e55363f0671177e /source/blender/editors
parent0528c16b3ad1dc7391c68477a0ba4427071b3924 (diff)
missed last commit (use utility function)
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 7f1083a7570..2a9904c6737 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -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