Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2009-12-22 12:46:03 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2009-12-22 12:46:03 +0300
commit8f5b2e946bd24cc4ee2b7496b1e022cb24f56f4f (patch)
tree8c02666ca5cbb02192b8e82f6918d0a1f939d517 /source/blender/python
parent5c3879f8fbc2c52c689a89da4424e65ea1ae5129 (diff)
BGE bug #20446: revert to orignal code, the problems comes from misunderstanding of matrix theory. More details in bug report.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/generic/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/matrix.c b/source/blender/python/generic/matrix.c
index 1fc5018c854..a1ef4b53615 100644
--- a/source/blender/python/generic/matrix.c
+++ b/source/blender/python/generic/matrix.c
@@ -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;
}
}