This commit is contained in:
Richard Davey 2018-03-12 12:08:59 +00:00
commit a005e076fa

View file

@ -73,6 +73,11 @@ var ForwardDiffuseLightPipeline = new Class({
{ {
var lightManager = scene.lights; var lightManager = scene.lights;
if (!lightManager)
{
return this;
}
lightManager.culledLights.length = 0; lightManager.culledLights.length = 0;
if (lightManager.lights.length <= 0 || !lightManager.active) if (lightManager.lights.length <= 0 || !lightManager.active)