mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Don't write .exr files for empty light grid areas
This commit is contained in:
parent
03c5e0273b
commit
d11fae0c20
1 changed files with 1 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ CONSOLE_COMMAND( bakeLightGrids, "Bake irradiance/vis light grid data", NULL )
|
|||
area->lightGrid.SetupLightGrid( area->globalBounds, tr.primaryWorld->mapName, tr.primaryWorld, a, limit );
|
||||
|
||||
#if 1
|
||||
int numGridPoints = area->lightGrid.lightGridPoints.Num();
|
||||
int numGridPoints = area->lightGrid.CountValidGridPoints();
|
||||
if( numGridPoints == 0 )
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue