Fix #23323: rigid body constraint drawing in 3d view was showing wrong
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 20 Aug 2010 11:12:13 +0000 (11:12 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 20 Aug 2010 11:12:13 +0000 (11:12 +0000)
rotation, not updated for radians/degree changes yet.

source/blender/editors/space_view3d/drawobject.c

index e23276cecad80a18d941d36163b799fc0c7768bc..967b800b97fffcd924df7f0e603ca5d16a7b2b40 100644 (file)
@@ -5470,10 +5470,9 @@ static void draw_hooks(Object *ob)
 //<rcruiz>
 void drawRBpivot(bRigidBodyJointConstraint *data)
 {
-       float radsPerDeg = 6.283185307179586232f / 360.f;
        int axis;
        float v1[3]= {data->pivX, data->pivY, data->pivZ};
-       float eu[3]= {radsPerDeg*data->axX, radsPerDeg*data->axY, radsPerDeg*data->axZ};
+       float eu[3]= {data->axX, data->axY, data->axZ};
        float mat[4][4];
 
        eul_to_mat4(mat,eu);