Fix build with osg >= 3.5.6

0.6.1
Julian Ospald 8 years ago
parent f17badb3cd
commit 5d85fa9220
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

@ -4,6 +4,7 @@
#include <osg/TriangleFunctor>
#include <osg/Transform>
#include <osg/Drawable>
#include <osg/Version>
#include <BulletCollision/CollisionShapes/btTriangleMesh.h>
@ -42,7 +43,11 @@ struct GetTriangleFunctor
return btVector3(vec.x(), vec.y(), vec.z());
}
#if OSG_MIN_VERSION_REQUIRED(3,5,6)
void inline operator()( const osg::Vec3 v1, const osg::Vec3 v2, const osg::Vec3 v3 )
#else
void inline operator()( const osg::Vec3 v1, const osg::Vec3 v2, const osg::Vec3 v3, bool _temp )
#endif
{
if (mTriMesh)
mTriMesh->addTriangle( toBullet(mMatrix.preMult(v1)), toBullet(mMatrix.preMult(v2)), toBullet(mMatrix.preMult(v3)));

Loading…
Cancel
Save