From 566af58e1cb95f83082c782da61e835f9d32bd0a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 14 Dec 2012 00:49:55 +0000 Subject: add assert if both args to invert_m4_m4 are the same. --- source/blender/blenlib/intern/math_matrix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/intern/math_matrix.c') diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c index 3ca771769a6..70eb5c1bb60 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -613,6 +613,8 @@ int invert_m4_m4(float inverse[4][4], float mat[4][4]) float max; int maxj; + BLI_assert(inverse != mat); + /* Set inverse to identity */ for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) -- cgit v1.2.3