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."
This commit is contained in:
parent
ba7d27c9b2
commit
42dfe67c0c
@ -314,11 +314,10 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
inline Particle& ParticleSystem::getDefaultParticleTemplate()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user