From 60f288195fcbe2214f548aecb152c252b03cebf9 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 26 Mar 2015 17:39:33 +0100 Subject: [PATCH] Fix for copy construction of particle system templates --- components/nifosg/particle.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/nifosg/particle.cpp b/components/nifosg/particle.cpp index 0afbf5e95..791847cd6 100644 --- a/components/nifosg/particle.cpp +++ b/components/nifosg/particle.cpp @@ -23,6 +23,9 @@ ParticleSystem::ParticleSystem(const ParticleSystem ©, const osg::CopyOp &co : osgParticle::ParticleSystem(copy, copyop) , mQuota(copy.mQuota) { + // For some reason the osgParticle constructor doesn't copy the particles + for (int i=0;i