diff --git a/src/game-lib-system-particle.js b/src/game-lib-system-particle.js index 8c2e0a1..2ba3f09 100644 --- a/src/game-lib-system-particle.js +++ b/src/game-lib-system-particle.js @@ -116,6 +116,10 @@ GameLib.System.Particle.prototype.beforeRender = function(data) { return; } + if (!(particleEngine.templateParticle.mesh.parentScene instanceof GameLib.D3.Scene)) { + return; + } + particleEngine.elapsed += data.delta; particleEngine.particles = particleEngine.particles.reduce(