From 4d85396fe4f7e3a870fb844b5207179f7dd03eb2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Sep 2017 22:39:00 +1000 Subject: Cleanup: use const Also use assert w/ rotate_m4. --- source/blender/blenlib/intern/math_matrix.c | 3 +++ 1 file changed, 3 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 f47f9ad76e6..d1a219c196a 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -1663,6 +1663,9 @@ void rotate_m4(float mat[4][4], const char axis, const float angle) mat[0][col] = temp; } break; + default: + BLI_assert(0); + break; } } -- cgit v1.2.3