Revision: 17261 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17261 Author: migius Date: 2008-11-01 12:35:08 +0100 (Sat, 01 Nov 2008)
Log Message: ----------- fix a bug in matrix.invert() for 2x2 matrices reported by Hans in http://blenderartists.org/forum/showthread.php?t=139748 Modified Paths: -------------- trunk/blender/source/blender/python/api2_2x/matrix.c Modified: trunk/blender/source/blender/python/api2_2x/matrix.c =================================================================== --- trunk/blender/source/blender/python/api2_2x/matrix.c 2008-11-01 11:15:13 UTC (rev 17260) +++ trunk/blender/source/blender/python/api2_2x/matrix.c 2008-11-01 11:35:08 UTC (rev 17261) @@ -246,8 +246,8 @@ /*calculate the classical adjoint*/ if(self->rowSize == 2) { mat[0] = self->matrix[1][1]; - mat[1] = -self->matrix[1][0]; - mat[2] = -self->matrix[0][1]; + mat[1] = -self->matrix[0][1]; + mat[2] = -self->matrix[1][0]; mat[3] = self->matrix[0][0]; } else if(self->rowSize == 3) { Mat3Adj((float (*)[3]) mat,(float (*)[3]) *self->matrix); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs