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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-14 04:49:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-14 04:49:55 +0400
commit566af58e1cb95f83082c782da61e835f9d32bd0a (patch)
tree2bf76d63ebbf3e0a40a4994ed8c2819d6ab25200 /source/blender/blenlib/intern/math_matrix.c
parent60800669d5137c3c6a858f2cc6a4a593fae2c24a (diff)
add assert if both args to invert_m4_m4 are the same.
Diffstat (limited to 'source/blender/blenlib/intern/math_matrix.c')
-rw-r--r--source/blender/blenlib/intern/math_matrix.c2
1 files changed, 2 insertions, 0 deletions
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++)