From Morten Haukness, "When cloning effects osg crashes because the copy constructur tries to run av pure virtual method (setUpEmitterAndProgram). The right thing to do when cloning an effect is to run the inherited version og buildEffect and setUpEmitterAndProgram.

"
This commit is contained in:
Robert Osfield
2008-06-26 18:06:24 +00:00
parent 44c125a801
commit f523515aed
6 changed files with 5 additions and 1 deletions

View File

@@ -30,7 +30,6 @@ ParticleEffect::ParticleEffect(const ParticleEffect& copy, const osg::CopyOp& co
_emitterDuration(copy._emitterDuration),
_wind(copy._wind)
{
if (_automaticSetup) buildEffect();
}
void ParticleEffect::setUseLocalParticleSystem(bool local)