Correctly insert lightmap captures and geometries.
This commit is contained in:
parent
fb10f45efe
commit
53903f07dc
@ -197,8 +197,8 @@ void RendererSceneCull::_instance_pair(Instance *p_A, Instance *p_B) {
|
|||||||
InstanceGeometryData *geom = static_cast<InstanceGeometryData *>(A->base_data);
|
InstanceGeometryData *geom = static_cast<InstanceGeometryData *>(A->base_data);
|
||||||
|
|
||||||
if (A->dynamic_gi) {
|
if (A->dynamic_gi) {
|
||||||
geom->lightmap_captures.insert(A);
|
geom->lightmap_captures.insert(B);
|
||||||
lightmap_data->geometries.insert(B);
|
lightmap_data->geometries.insert(A);
|
||||||
|
|
||||||
if (A->scenario && A->array_index >= 0) {
|
if (A->scenario && A->array_index >= 0) {
|
||||||
InstanceData &idata = A->scenario->instance_data[A->array_index];
|
InstanceData &idata = A->scenario->instance_data[A->array_index];
|
||||||
|
Loading…
Reference in New Issue
Block a user