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:
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