This commit is contained in:
aap 2020-04-19 15:29:11 +02:00
parent f47bd33a6a
commit 4541fe86f7
1 changed files with 3 additions and 2 deletions

View File

@ -144,8 +144,6 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
{ {
int32 maxDirectionals, maxLocals; int32 maxDirectionals, maxLocals;
assert(atomic->world == this);
maxDirectionals = lightData->numDirectionals; maxDirectionals = lightData->numDirectionals;
maxLocals = lightData->numLocals; maxLocals = lightData->numLocals;
@ -172,6 +170,9 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
} }
} }
if(atomic->world != this)
return;
if(!normals) if(!normals)
return; return;