diff options
author | Martin Poirier <theeth@yahoo.com> | 2007-05-21 23:41:14 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2007-05-21 23:41:14 +0400 |
commit | 21bc08a0bb39638e13fa19109a22e2d9fb20579e (patch) | |
tree | e99cc8230502f2b50b4cfcedb56aae06681dd141 /source/blender | |
parent | b1e7c76e93950e1d0788d1079e66650545dd736b (diff) |
=== Bugfix ===
Fix potential problem with Matrix initializer (can't call Matrix_Identity on non square matrices).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/api2_2x/matrix.c | 2 |
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); } |