make sure scene loaded

beta.r3js.org
-=yb4f310 2017-11-14 09:43:59 +01:00
parent b16492f347
commit 4f7c76ae60
1 changed files with 4 additions and 0 deletions

View File

@ -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(