From 877e0e1184230c320cf61d10873cbf1c0ed31072 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 12 May 2013 09:26:02 +0000 Subject: Fix #35319: python 2x2 matrix inverse and adjugate were wrong. --- source/blender/blenlib/intern/math_matrix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c index fa85e015ee8..9a8eb17da63 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -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]; } -- cgit v1.2.3