BGE bug #20446: revert to orignal code, the problems comes from misunderstanding...
authorBenoit Bolsee <benoit.bolsee@online.be>
Tue, 22 Dec 2009 09:46:03 +0000 (09:46 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Tue, 22 Dec 2009 09:46:03 +0000 (09:46 +0000)
source/blender/python/generic/matrix.c

index 1fc5018c854eae77f5bde2069e1e42d02bbc09a8..a1ef4b53615c63a2bf14190ae48345653dae5233 100644 (file)
@@ -944,7 +944,7 @@ static PyObject *Matrix_mul(PyObject * m1, PyObject * m2)
                                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;
                        }
                }