force updated lights to ignore actor trace cache
This commit is contained in:
parent
d35195bded
commit
af5497c6dd
3 changed files with 18 additions and 11 deletions
|
|
@ -421,17 +421,22 @@ void FDynamicLight::Tick()
|
|||
lightStrength = LightCalcStrength(m_currentRadius);
|
||||
}
|
||||
|
||||
bool updated = UpdateLocation();
|
||||
updated = UpdateLocation();
|
||||
|
||||
if(!updated && markTiles && (m_active != wasactive || oldred != GetRed() || oldblue != GetBlue() || oldgreen != GetGreen() || oldradius != m_currentRadius))
|
||||
if(!updated && (m_active != wasactive || oldred != GetRed() || oldblue != GetBlue() || oldgreen != GetGreen() || oldradius != m_currentRadius))
|
||||
{
|
||||
MarkTilesForUpdate(Level, touching_sides, touching_sector);
|
||||
if(markTiles)
|
||||
{
|
||||
MarkTilesForUpdate(Level, touching_sides, touching_sector);
|
||||
}
|
||||
|
||||
wasactive = m_active;
|
||||
oldred = GetRed();
|
||||
oldblue = GetBlue();
|
||||
oldgreen = GetGreen();
|
||||
updated = true;
|
||||
}
|
||||
|
||||
wasactive = m_active;
|
||||
oldred = GetRed();
|
||||
oldblue = GetBlue();
|
||||
oldgreen = GetGreen();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue