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:
authorMartin Poirier <theeth@yahoo.com>2007-05-21 23:41:14 +0400
committerMartin Poirier <theeth@yahoo.com>2007-05-21 23:41:14 +0400
commit21bc08a0bb39638e13fa19109a22e2d9fb20579e (patch)
treee99cc8230502f2b50b4cfcedb56aae06681dd141 /source/blender/python/api2_2x/matrix.c
parentb1e7c76e93950e1d0788d1079e66650545dd736b (diff)
=== Bugfix ===
Fix potential problem with Matrix initializer (can't call Matrix_Identity on non square matrices).
Diffstat (limited to 'source/blender/python/api2_2x/matrix.c')
-rw-r--r--source/blender/python/api2_2x/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/matrix.c b/source/blender/python/api2_2x/matrix.c
index 85219ebab8a..6a427bfe7f6 100644
--- a/source/blender/python/api2_2x/matrix.c
+++ b/source/blender/python/api2_2x/matrix.c
@@ -952,7 +952,7 @@ PyObject *newMatrixObject(float *mat, int rowSize, int colSize, int type)
self->matrix[row][col] = mat[(row * colSize) + col];
}
}
- } else { /*or if no arguments are passed return identity matrix*/
+ } else if (rowSize == colSize ) { /*or if no arguments are passed return identity matrix for square matrices */
Matrix_Identity(self);
Py_DECREF(self);
}