diff --git a/libs/util/mathlib.c b/libs/util/mathlib.c index 842f96df1..1267df2ad 100644 --- a/libs/util/mathlib.c +++ b/libs/util/mathlib.c @@ -268,7 +268,7 @@ QuatMultVec (const quat_t q, const vec3_t v, vec3_t out) dqq = DotProduct (q, q); VectorScale (tv, s, tv); VectorMultAdd (tv, dqv, q, tv); - VectorAdd (tv, tv, tv); + VectorScale (tv, 2, tv); VectorMultAdd (tv, s * s - dqq, v, out); } diff --git a/libs/util/test/Makemodule.am b/libs/util/test/Makemodule.am index cf35f885c..8bbb671ad 100644 --- a/libs/util/test/Makemodule.am +++ b/libs/util/test/Makemodule.am @@ -14,9 +14,10 @@ libs_util_tests = \ libs/util/test/test-set \ libs/util/test/test-txtbuffer \ libs/util/test/test-vrect -check_PROGRAMS += $(libs_util_tests) -TESTS += $(libs_model_tests) +TESTS += $(libs_util_tests) + +check_PROGRAMS += $(libs_util_tests) libs_util_test_test_bary_SOURCES=libs/util/test/test-bary.c libs_util_test_test_bary_LDADD=libs/util/libQFutil.la