diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-20 15:12:13 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-20 15:12:13 +0400 |
commit | 5b499cca762a640307d6c9e6c395ba7cd3930c2c (patch) | |
tree | 1ac28acf9fc3908068acedbef75f303a953af3c7 /source/blender/editors/space_view3d/drawobject.c | |
parent | 77fb06f630c7067dbb94f704c5218f5240efd9e7 (diff) |
Fix #23323: rigid body constraint drawing in 3d view was showing wrong
rotation, not updated for radians/degree changes yet.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index e23276cecad..967b800b97f 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -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); |