Add IsActive check in DoomLevelMesh::CreateLightList
This commit is contained in:
parent
ae33d583ad
commit
b61941b4a6
1 changed files with 2 additions and 2 deletions
|
|
@ -731,7 +731,7 @@ LightListAllocInfo DoomLevelMesh::CreateLightList(FLightNode* node, int portalgr
|
|||
while (cur)
|
||||
{
|
||||
FDynamicLight* light = cur->lightsource;
|
||||
if (light && (light->Trace() || lm_dynlights) && GetLightIndex(light, portalgroup) >= 0)
|
||||
if (light && light->IsActive() && (light->Trace() || lm_dynlights) && GetLightIndex(light, portalgroup) >= 0)
|
||||
{
|
||||
lightcount++;
|
||||
}
|
||||
|
|
@ -744,7 +744,7 @@ LightListAllocInfo DoomLevelMesh::CreateLightList(FLightNode* node, int portalgr
|
|||
while (cur)
|
||||
{
|
||||
FDynamicLight* light = cur->lightsource;
|
||||
if (light && (light->Trace() || lm_dynlights))
|
||||
if (light && light->IsActive() && (light->Trace() || lm_dynlights))
|
||||
{
|
||||
int lightindex = GetLightIndex(light, portalgroup);
|
||||
if (lightindex >= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue