Maps with a ZDRayInfo must always have dynamic lights (gl_lights cvar is ignored in this situation)
This commit is contained in:
parent
1fc1f467a0
commit
db4472b067
2 changed files with 7 additions and 4 deletions
|
|
@ -77,8 +77,11 @@ CUSTOM_CVAR (Bool, gl_lights, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOIN
|
|||
{
|
||||
for (auto Level : AllLevels())
|
||||
{
|
||||
if (self) Level->RecreateAllAttachedLights();
|
||||
else Level->DeleteAllAttachedLights();
|
||||
if (!Level->lightmaps)
|
||||
{
|
||||
if (self) Level->RecreateAllAttachedLights();
|
||||
else Level->DeleteAllAttachedLights();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue