]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/particles.cxx
Improove bounding volume building in the scenery loading process.
[simgear.git] / simgear / scene / model / particles.cxx
index 2dd2a0a46f5d8214b8259dc3b7890788db320dc1..9f3aeb7d686414cbc4b57b67904e4cc7f205389e 100644 (file)
@@ -26,6 +26,7 @@
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/props/props.hxx>
 #include <simgear/props/props_io.hxx>
+#include <simgear/structure/OSGVersion.hxx>
 
 #include <osgParticle/SmokeTrailEffect>
 #include <osgParticle/FireEffect>
 
 #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)
 {