mirror of
https://github.com/aap/librw.git
synced 2024-11-25 13:15:43 +00:00
fix
This commit is contained in:
parent
f47bd33a6a
commit
4541fe86f7
@ -144,8 +144,6 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
|
||||
{
|
||||
int32 maxDirectionals, maxLocals;
|
||||
|
||||
assert(atomic->world == this);
|
||||
|
||||
maxDirectionals = lightData->numDirectionals;
|
||||
maxLocals = lightData->numLocals;
|
||||
|
||||
@ -172,6 +170,9 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
|
||||
}
|
||||
}
|
||||
|
||||
if(atomic->world != this)
|
||||
return;
|
||||
|
||||
if(!normals)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user