[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52983] trunk/blender/source/blender/ blenlib/intern/math_matrix.c: add assert if both args to invert_m4_m4 are the same.

Campbell Barton ideasman42 at gmail.com
Fri Dec 14 01:49:57 CET 2012


Revision: 52983
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52983
Author:   campbellbarton
Date:     2012-12-14 00:49:55 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
add assert if both args to invert_m4_m4 are the same.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/math_matrix.c

Modified: trunk/blender/source/blender/blenlib/intern/math_matrix.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/math_matrix.c	2012-12-13 23:18:38 UTC (rev 52982)
+++ trunk/blender/source/blender/blenlib/intern/math_matrix.c	2012-12-14 00:49:55 UTC (rev 52983)
@@ -613,6 +613,8 @@
 	float max;
 	int maxj;
 
+	BLI_assert(inverse != mat);
+
 	/* Set inverse to identity */
 	for (i = 0; i < 4; i++)
 		for (j = 0; j < 4; j++)




More information about the Bf-blender-cvs mailing list