Merge pull request #77089 from DearthDev/lightmapgi-dynamic-objects

LightmapGI dynamic object lighting fix
This commit is contained in:
Rémi Verschelde 2023-05-17 11:25:25 +02:00
commit b42cea1373
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ void RendererSceneCull::_instance_pair(Instance *p_A, Instance *p_B) {
InstanceGeometryData *geom = static_cast<InstanceGeometryData *>(A->base_data);
if (A->dynamic_gi) {
geom->lightmap_captures.insert(A);
lightmap_data->geometries.insert(B);
geom->lightmap_captures.insert(B);
lightmap_data->geometries.insert(A);
if (A->scenario && A->array_index >= 0) {
InstanceData &idata = A->scenario->instance_data[A->array_index];