Avoid unnecessary matrix type conversion in osgParticle
This commit is contained in:
parent
572e1d75a4
commit
7c71d8dc16
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user