Merge pull request #50194 from BastiaanOlij/fix_multiple_reflection_probes

Fix indexing of multiple reflection probes
This commit is contained in:
Rémi Verschelde 2021-07-12 19:22:47 +02:00 committed by GitHub
commit b218c6785e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -709,6 +709,10 @@ bool RendererSceneRenderRD::reflection_probe_instance_begin_render(RID p_instanc
}
}
if (rpi->atlas_index != -1) { // should we fail if this is still -1 ?
atlas->reflections.write[rpi->atlas_index].owner = p_instance;
}
rpi->atlas = p_reflection_atlas;
rpi->rendering = true;
rpi->dirty = false;