[Bf-blender-cvs] [8f92cbd] master: missed last commit (use utility function)

Campbell Barton noreply at git.blender.org
Tue Oct 13 07:38:56 CEST 2015


Commit: 8f92cbd4a79764771e4283d9ede589891a5e6bbf
Author: Campbell Barton
Date:   Tue Oct 13 16:31:43 2015 +1100
Branches: master
https://developer.blender.org/rB8f92cbd4a79764771e4283d9ede589891a5e6bbf

missed last commit (use utility function)

===================================================================

M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 7f1083a..2a9904c 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




More information about the Bf-blender-cvs mailing list