diff --git a/simgear/scene/model/particles.cxx b/simgear/scene/model/particles.cxx index 2dd2a0a4..9f3aeb7d 100644 --- a/simgear/scene/model/particles.cxx +++ b/simgear/scene/model/particles.cxx @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -44,6 +45,10 @@ #include "particles.hxx" +#if SG_OSG_VERSION >= 27004 +#define OSG_PARTICLE_FIX 1 +#endif + namespace simgear { void GlobalParticleCallback::operator()(osg::Node* node, osg::NodeVisitor* nv) @@ -111,8 +116,6 @@ osg::Group* Particles::getCommonRoot() return commonRoot.get(); } -// Enable this once particle fix is in OSG. -// #define OSG_PARTICLE_FIX 1 void transformParticles(osgParticle::ParticleSystem* particleSys, const osg::Matrix& mat) {