From: timoore Date: Thu, 30 Oct 2008 23:51:41 +0000 (+0000) Subject: enable world coordinate particle fix X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6afd7e1a38287fd7759cd31534e9d6fcb78793b0;p=simgear.git enable world coordinate particle fix --- 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) {