From dcfeca57d764996dd6d0e60e69e2ad426f7a8dea Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 14 Nov 2017 11:45:37 +0100 Subject: [PATCH] fix --- src/game-lib-system-particle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }