diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-12 13:26:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-12 13:26:02 +0400 |
commit | 877e0e1184230c320cf61d10873cbf1c0ed31072 (patch) | |
tree | b57a87fe5562c77c58be8da94471eb4d3bec1ed5 /source/blender/blenlib/intern | |
parent | 70eaf2fe44934da315753df30aff450333082630 (diff) |
Fix #35319: python 2x2 matrix inverse and adjugate were wrong.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/math_matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]; } |