Avoid unnecessary matrix type conversion in osgParticle

This commit is contained in:
Capostrophic
2019-03-10 15:43:48 +03:00
committed by Robert Osfield
parent 37eae8c719
commit b14bb21801

View File

@@ -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)