Fix: Debug build error after previous commit

To avoid including the C header in the C++ header, reference
the define by name for now.
This commit is contained in:
Hans Goudey
2023-11-11 22:15:02 +01:00
parent 583bd9662e
commit 6273205c93
@@ -153,7 +153,8 @@ template<typename T> QuaternionBase<T> QuaternionBase<T>::swing(const Axis axis)
/* Compute swing by multiplying the original quaternion by inverted twist. */
QuaternionBase<T> swing = input * invert_normalized(input.twist(axis));
BLI_assert(math::abs(VecBase<T, 4>(swing)[axis.as_int() + 1]) < BLI_ASSERT_UNIT_EPSILON);
BLI_assert(math::abs(VecBase<T, 4>(swing)[axis.as_int() + 1]) <
0.0002f /*BLI_ASSERT_UNIT_EPSILON*/);
return swing;
}