mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 23:36:59 -04:00
Fix missing particles caused by shallow copy of ParticleSystemController
This commit is contained in:
parent
9b27ec4945
commit
706ac45c76
@ -94,7 +94,7 @@ namespace SceneUtil
|
||||
|
||||
osgParticle::ParticleProcessor* CopyOp::operator() (const osgParticle::ParticleProcessor* processor) const
|
||||
{
|
||||
osgParticle::ParticleProcessor* cloned = osg::clone(processor, osg::CopyOp::SHALLOW_COPY);
|
||||
osgParticle::ParticleProcessor* cloned = osg::clone(processor, osg::CopyOp::DEEP_COPY_CALLBACKS);
|
||||
mMap[cloned] = processor->getParticleSystem();
|
||||
return cloned;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user