Correctly insert lightmap captures and geometries.

(cherry picked from commit 53903f07dc)
This commit is contained in:
dearthdev 2023-05-15 00:52:57 -05:00 committed by Yuri Sizov
parent 156862bddb
commit 67698b155f

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];