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>2019-08-26 07:32:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-26 07:32:35 +0300
commit7b61fe1638051b3b2e296680a000819f31672414 (patch)
tree7b640b7fb07ac3d1663fc683c903d3b5e33bbf42 /source/blender/blenlib/intern/math_rotation.c
parent8d03e04493023d63ec05321ab8dc48dbd22363f2 (diff)
Cleanup: use BLI_assert
Diffstat (limited to 'source/blender/blenlib/intern/math_rotation.c')
-rw-r--r--source/blender/blenlib/intern/math_rotation.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index 47814b1080c..e4b44240272 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -644,8 +644,8 @@ void vec_to_quat(float q[4], const float vec[3], short axis, const short upflag)
float nor[3], tvec[3];
float angle, si, co, len;
- assert(axis >= 0 && axis <= 5);
- assert(upflag >= 0 && upflag <= 2);
+ BLI_assert(axis >= 0 && axis <= 5);
+ BLI_assert(upflag >= 0 && upflag <= 2);
/* first set the quat to unit */
unit_qt(q);
@@ -1194,7 +1194,7 @@ void axis_angle_to_quat_single(float q[4], const char axis, const float angle)
const float angle_sin = sinf(angle_half);
const int axis_index = (axis - 'X');
- assert(axis >= 'X' && axis <= 'Z');
+ BLI_assert(axis >= 'X' && axis <= 'Z');
q[0] = angle_cos;
zero_v3(q + 1);
@@ -1398,7 +1398,7 @@ void rotate_eul(float beul[3], const char axis, const float ang)
{
float eul[3], mat1[3][3], mat2[3][3], totmat[3][3];
- assert(axis >= 'X' && axis <= 'Z');
+ BLI_assert(axis >= 'X' && axis <= 'Z');
eul[0] = eul[1] = eul[2] = 0.0f;
if (axis == 'X') {
@@ -1544,7 +1544,7 @@ static const RotOrderInfo rotOrders[] = {
*/
static const RotOrderInfo *get_rotation_order_info(const short order)
{
- assert(order >= 0 && order <= 6);
+ BLI_assert(order >= 0 && order <= 6);
if (order < 1) {
return &rotOrders[0];
}
@@ -1813,7 +1813,7 @@ void rotate_eulO(float beul[3], const short order, char axis, float ang)
{
float eul[3], mat1[3][3], mat2[3][3], totmat[3][3];
- assert(axis >= 'X' && axis <= 'Z');
+ BLI_assert(axis >= 'X' && axis <= 'Z');
zero_v3(eul);
@@ -2119,8 +2119,8 @@ void quat_apply_track(float quat[4], short axis, short upflag)
{0.0, sqrt_1_2, sqrt_1_2, 0.0},
};
- assert(axis >= 0 && axis <= 5);
- assert(upflag >= 0 && upflag <= 2);
+ BLI_assert(axis >= 0 && axis <= 5);
+ BLI_assert(upflag >= 0 && upflag <= 2);
mul_qt_qtqt(quat, quat, quat_track[axis]);
@@ -2142,7 +2142,7 @@ void vec_apply_track(float vec[3], short axis)
{
float tvec[3];
- assert(axis >= 0 && axis <= 5);
+ BLI_assert(axis >= 0 && axis <= 5);
copy_v3_v3(tvec, vec);