mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Don't rely on the _particles vector implementation details
This will allow compiling OpenMW with an osgParticle optimization to be pushed to OpenMW/osg.
This commit is contained in:
parent
3d12b2ca9d
commit
6cf2c35235
@ -23,7 +23,7 @@ ParticleSystem::ParticleSystem(const ParticleSystem ©, const osg::CopyOp &co
|
||||
{
|
||||
// For some reason the osgParticle constructor doesn't copy the particles
|
||||
for (int i=0;i<copy.numParticles()-copy.numDeadParticles();++i)
|
||||
_particles.push_back(*copy.getParticle(i));
|
||||
createParticle(copy.getParticle(i));
|
||||
}
|
||||
|
||||
void ParticleSystem::setQuota(int quota)
|
||||
|
Loading…
x
Reference in New Issue
Block a user