From 7c71d8dc16b0e8608a44011b0bdc545eb89bdc75 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sun, 10 Mar 2019 15:43:48 +0300 Subject: [PATCH] Avoid unnecessary matrix type conversion in osgParticle --- src/osgParticle/ParticleSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgParticle/ParticleSystem.cpp b/src/osgParticle/ParticleSystem.cpp index e031b6a70..32552b320 100644 --- a/src/osgParticle/ParticleSystem.cpp +++ b/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)