Skip to content

Commit

Permalink
Fixed|Renderer: BspLeaf::MissingClusterError drawing a particle model
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danij-deng committed Nov 29, 2013
1 parent 4bd5334 commit 60a8fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/render/vlight.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 60a8fa2

Please sign in to comment.