[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10752] trunk/blender/source/blender/ python/api2_2x/matrix.c: === Bugfix ===

Martin Poirier theeth at yahoo.com
Mon May 21 21:41:15 CEST 2007


Revision: 10752
          https://svn.blender.org//revision/?rev=10752&view=rev
Author:   theeth
Date:     2007-05-21 21:41:14 +0200 (Mon, 21 May 2007)

Log Message:
-----------
=== Bugfix ===

Fix potential problem with Matrix initializer (can't call Matrix_Identity on non square matrices).

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

Modified: trunk/blender/source/blender/python/api2_2x/matrix.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/matrix.c	2007-05-21 18:45:28 UTC (rev 10751)
+++ trunk/blender/source/blender/python/api2_2x/matrix.c	2007-05-21 19:41:14 UTC (rev 10752)
@@ -952,7 +952,7 @@
 					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);
 		}





More information about the Bf-blender-cvs mailing list