Skip to content
Permalink
Browse files

Merge pull request #722 from Capostrophic/matrix

Avoid unnecessary matrix type conversion in osgParticle
  • Loading branch information...
openscenegraph committed Mar 14, 2019
2 parents f6acb80 + 7c71d8d commit 7b61419891c85c7a98fbc8a0b70b89b2b755078a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/osgParticle/ParticleSystem.cpp
@@ -174,7 +174,7 @@ void osgParticle::ParticleSystem::update(double dt, osg::NodeVisitor& nv)
osgUtil::CullVisitor* cv = nv.asCullVisitor();
if (cv)
{
osg::Matrixd modelview = *(cv->getModelViewMatrix());
osg::Matrix modelview = *(cv->getModelViewMatrix());
double scale = (_sortMode==SORT_FRONT_TO_BACK ? -1.0 : 1.0);
double deadDistance = DBL_MAX;
for (unsigned int i=0; i<_particles.size(); ++i)

0 comments on commit 7b61419

Please sign in to comment.
You can’t perform that action at this time.