diff --git a/src/osgParticle/PrecipitationEffect.cpp b/src/osgParticle/PrecipitationEffect.cpp index afc944aac..7fa2d0edc 100644 --- a/src/osgParticle/PrecipitationEffect.cpp +++ b/src/osgParticle/PrecipitationEffect.cpp @@ -350,7 +350,7 @@ void PrecipitationEffect::update() } else _inversePeriodUniform->set(1.0f/_period); - if (!_particleSizeUniform) + if (!_particleColorUniform) { _particleColorUniform = new osg::Uniform("particleColour", _particleColor); _stateset->addUniform(_particleColorUniform.get());