From 60a8fa2478c1dd12f7b107cddb15b2374d148872 Mon Sep 17 00:00:00 2001 From: danij Date: Fri, 29 Nov 2013 07:03:48 +0000 Subject: [PATCH] Fixed|Renderer: BspLeaf::MissingClusterError drawing a particle model Particle models are drawn from the interpolated origin, which, may lie in a degenerate BSP leaf even though the actual origin is within the map. Consequently the BspLeaf given to R_CollectAffectingLights() may be degenerate. --- doomsday/client/src/render/vlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doomsday/client/src/render/vlight.cpp b/doomsday/client/src/render/vlight.cpp index e7ec7acdaa..04ff4339dc 100644 --- a/doomsday/client/src/render/vlight.cpp +++ b/doomsday/client/src/render/vlight.cpp @@ -320,7 +320,7 @@ uint R_CollectAffectingLights(collectaffectinglights_params_t const *p) lightWithWorldLight(p->ambientColor, p->starkLight, listIdx); // Add extra light by interpreting nearby sources. - if(p->bspLeaf) + if(p->bspLeaf && p->bspLeaf->hasCluster()) { lightWithLumobjs(p->origin, *p->bspLeaf, listIdx);