Fix #35319: python 2x2 matrix inverse and adjugate were wrong.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 12 May 2013 09:26:02 +0000 (09:26 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 12 May 2013 09:26:02 +0000 (09:26 +0000)
source/blender/blenlib/intern/math_matrix.c

index fa85e015ee8ecfda32918e2399f2263bf284790a..9a8eb17da6397c7fe90a2111d5b7f00874791e2c 100644 (file)
@@ -1043,8 +1043,8 @@ void adjoint_m2_m2(float m1[2][2], float m[2][2])
 {
        BLI_assert(m1 != m);
        m1[0][0] =  m[1][1];
-       m1[0][1] = -m[1][0];
-       m1[1][0] = -m[0][1];
+       m1[0][1] = -m[0][1];
+       m1[1][0] = -m[1][0];
        m1[1][1] =  m[0][0];
 }