[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31479] trunk/blender/source/blender/ editors/space_view3d/drawobject.c: Fix #23323: rigid body constraint drawing in 3d view was showing wrong

Brecht Van Lommel brecht at blender.org
Fri Aug 20 13:12:13 CEST 2010


Revision: 31479
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31479
Author:   blendix
Date:     2010-08-20 13:12:13 +0200 (Fri, 20 Aug 2010)

Log Message:
-----------
Fix #23323: rigid body constraint drawing in 3d view was showing wrong
rotation, not updated for radians/degree changes yet.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/drawobject.c

Modified: trunk/blender/source/blender/editors/space_view3d/drawobject.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/drawobject.c	2010-08-20 10:35:48 UTC (rev 31478)
+++ trunk/blender/source/blender/editors/space_view3d/drawobject.c	2010-08-20 11:12:13 UTC (rev 31479)
@@ -5470,10 +5470,9 @@
 //<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);





More information about the Bf-blender-cvs mailing list