From 3b75b41676bd2851b6d2b61d3e3213ee50078870 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 Nov 2013 21:29:58 +0000 Subject: Workaround for the bullet 2.82 compile warning. --- src/math/vector3f.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/math') diff --git a/src/math/vector3f.h b/src/math/vector3f.h index 24a7610..88393e7 100644 --- a/src/math/vector3f.h +++ b/src/math/vector3f.h @@ -240,12 +240,22 @@ inline btVector3 to_btVector3(const math::Vector3f & v) } /// calculate the normal of a plane defined by three vertices -inline const Vector3f normal(const Vector3f & center, const Vector3f & u, const Vector3f & v) { +inline const Vector3f normal(const Vector3f & center, const Vector3f & u, const Vector3f & v) +{ Vector3f r = crossproduct(u - center, v - center); r.normalize(); return r; } +#if (BT_BULLET_VERSION == 282) +// workaround for a compiler warning caused by bullet 2.82 +// see http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=9412 +inline int bullet_btInfinityMask() +{ + return btInfinityMask; +} +#endif + } // namespace math #endif // __INCLUDED_MATH_VECTOR3F_H__ -- cgit v1.2.3