Fix for transform orientation fix, probably forgot to commit this?
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 6 Nov 2009 22:10:08 +0000 (22:10 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 6 Nov 2009 22:10:08 +0000 (22:10 +0000)
source/blender/editors/space_view3d/view3d_edit.c

index fa6267c..1cbb7d0 100644 (file)
@@ -1500,7 +1500,6 @@ static EnumPropertyItem prop_view_items[] = {
 
 
 /* would like to make this a generic function - outside of transform */
-extern void getTransformOrientationMatrix(const bContext *C, float twmat[][4], int activeOnly);
 
 static void axis_set_view(bContext *C, float q1, float q2, float q3, float q4, short view, int perspo, int align_active)
 {
@@ -1520,12 +1519,12 @@ static void axis_set_view(bContext *C, float q1, float q2, float q3, float q4, s
                }
                else {
                        float obact_quat[4];
-                       float twmat[4][4];
+                       float twmat[3][3];
 
                        /* same as transform manipulator when normal is set */
-                       getTransformOrientationMatrix(C, twmat, TRUE);
+                       ED_getTransformOrientationMatrix(C, twmat, TRUE);
 
-                       Mat4ToQuat(twmat, obact_quat);
+                       Mat3ToQuat(twmat, obact_quat);
                        QuatInv(obact_quat);
                        QuatMul(new_quat, new_quat, obact_quat);