From 42dfe67c0c1ea2d2650910de438a9761f83bba64 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 2 Oct 2006 11:26:43 +0000 Subject: [PATCH] From Farshid Lashkari, "There was a bug in ParticleSystem where the bounds is not properly flagged as computed when there is only 1 particle. Attached is the fix." --- include/osgParticle/ParticleSystem | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/osgParticle/ParticleSystem b/include/osgParticle/ParticleSystem index c827614f8..9e0ea3a58 100644 --- a/include/osgParticle/ParticleSystem +++ b/include/osgParticle/ParticleSystem @@ -314,10 +314,9 @@ namespace osgParticle if (p.x() + r > _bmax.x()) _bmax.x() = p.x() + r; if (p.y() + r > _bmax.y()) _bmax.y() = p.y() + r; if (p.z() + r > _bmax.z()) _bmax.z() = p.z() + r; - - if (!_bounds_computed) - _bounds_computed = true; } + if (!_bounds_computed) + _bounds_computed = true; } inline Particle& ParticleSystem::getDefaultParticleTemplate()