diff --git a/servers/rendering/renderer_scene_cull.cpp b/servers/rendering/renderer_scene_cull.cpp index 6a872da69ee..032f2a6275e 100644 --- a/servers/rendering/renderer_scene_cull.cpp +++ b/servers/rendering/renderer_scene_cull.cpp @@ -197,8 +197,8 @@ void RendererSceneCull::_instance_pair(Instance *p_A, Instance *p_B) { InstanceGeometryData *geom = static_cast(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];