From 706ac45c76b740a40a028ad74333b27a895e549a Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 26 Feb 2017 23:10:41 +0100 Subject: [PATCH] Fix missing particles caused by shallow copy of ParticleSystemController --- components/sceneutil/clone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/clone.cpp b/components/sceneutil/clone.cpp index 2c0ce98ba..738c7a30d 100644 --- a/components/sceneutil/clone.cpp +++ b/components/sceneutil/clone.cpp @@ -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; }