diff options
author | Ton Roosendaal <ton@blender.org> | 2005-04-27 12:52:11 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-04-27 12:52:11 +0400 |
commit | 5bae7bb9be21ac5b3426d2ee9873c0deeb77ab70 (patch) | |
tree | d3720073110f008376b8ac776fe9a19d8688fb92 /source/blender/src/transform_manipulator.c | |
parent | b16d6e005d93c22c163ae355e35583c9f924d291 (diff) |
Fixed CTRL modifier for rotation widget drawing.
Also fixes bug #2481
Diffstat (limited to 'source/blender/src/transform_manipulator.c')
-rw-r--r-- | source/blender/src/transform_manipulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/transform_manipulator.c b/source/blender/src/transform_manipulator.c index c328d9050ff..998c1298d46 100644 --- a/source/blender/src/transform_manipulator.c +++ b/source/blender/src/transform_manipulator.c @@ -602,15 +602,15 @@ static void draw_manipulator_rotate_ghost(float mat[][4], int drawflags) glPushMatrix(); size= screen_aligned(mat); - vec[0]= (float)(Trans.imval[0] - Trans.center2d[0]); - vec[1]= (float)(Trans.imval[1] - Trans.center2d[1]); + vec[0]= (float)(Trans.con.imval[0] - Trans.center2d[0]); + vec[1]= (float)(Trans.con.imval[1] - Trans.center2d[1]); vec[2]= 0.0f; Normalise(vec); startphi= saacos( vec[1] ); if(vec[0]<0.0) startphi= -startphi; - phi= (float)fmod(-180.0*Trans.val/M_PI, 360.0); + phi= (float)fmod(180.0*Trans.val/M_PI, 360.0); if(phi > 180.0) phi-= 360.0; else if(phi<-180.0) phi+= 360.0; |