[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25514] trunk/blender/source/blender/ python/generic/matrix.c: BGE bug #20446: revert to orignal code, the problems comes from misunderstanding of matrix theory.

Benoit Bolsee benoit.bolsee at online.be
Tue Dec 22 10:46:03 CET 2009


Revision: 25514
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25514
Author:   ben2610
Date:     2009-12-22 10:46:03 +0100 (Tue, 22 Dec 2009)

Log Message:
-----------
BGE bug #20446: revert to orignal code, the problems comes from misunderstanding of matrix theory. More details in bug report.

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/matrix.c

Modified: trunk/blender/source/blender/python/generic/matrix.c
===================================================================
--- trunk/blender/source/blender/python/generic/matrix.c	2009-12-22 08:39:59 UTC (rev 25513)
+++ trunk/blender/source/blender/python/generic/matrix.c	2009-12-22 09:46:03 UTC (rev 25514)
@@ -944,7 +944,7 @@
 				for(z = 0; z < mat1->rowSize; z++) {
 					dot += (mat1->matrix[z][y] * mat2->matrix[x][z]);
 				}
-				mat[((y * mat1->rowSize) + x)] = (float)dot;
+				mat[((x * mat1->colSize) + y)] = (float)dot;
 				dot = 0.0f;
 			}
 		}





More information about the Bf-blender-cvs mailing list