check if color changes for lightmap update
This commit is contained in:
parent
9bc8b50521
commit
bca75ef346
2 changed files with 8 additions and 3 deletions
|
|
@ -423,12 +423,15 @@ void FDynamicLight::Tick()
|
|||
|
||||
bool updated = UpdateLocation();
|
||||
|
||||
if(!updated && markTiles && m_active != wasactive)
|
||||
if(!updated && markTiles && (m_active != wasactive || oldred != GetRed() || oldblue != GetBlue() || oldgreen != GetGreen()))
|
||||
{
|
||||
MarkTilesForUpdate(Level, touching_sides, touching_sector);
|
||||
}
|
||||
|
||||
wasactive = m_active;
|
||||
wasactive = m_active;
|
||||
oldred = GetRed();
|
||||
oldblue = GetBlue();
|
||||
oldgreen = GetGreen();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -300,6 +300,8 @@ public:
|
|||
bool swapped;
|
||||
bool explicitpitch;
|
||||
|
||||
int oldred, oldgreen, oldblue;
|
||||
|
||||
float lightStrength;
|
||||
|
||||
// Locations in the level mesh light list. Ends with index = 0 or all entries used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue