diff --git a/src/game-lib-system-particle.js b/src/game-lib-system-particle.js index 2ba3f09..7fd77a7 100644 --- a/src/game-lib-system-particle.js +++ b/src/game-lib-system-particle.js @@ -116,7 +116,8 @@ GameLib.System.Particle.prototype.beforeRender = function(data) { return; } - if (!(particleEngine.templateParticle.mesh.parentScene instanceof GameLib.D3.Scene)) { + if (GameLib.Utils.UndefinedOrNull(particleEngine.templateParticle.mesh.parentScene) || + GameLib.Utils.UndefinedOrNull(particleEngine.templateParticle.mesh.parentScene.instance)) { return; }