Fix #130054: HDRI Preview rendering black if no visible mesh is in the scene

Ensure the probes views are set.

Pull Request: https://projects.blender.org/blender/blender/pulls/130190
This commit is contained in:
Miguel Pozo
2024-11-12 21:22:43 +01:00
parent ce68e3de15
commit 31ba9b798b

View File

@@ -268,6 +268,10 @@ void LookdevModule::draw(View &view)
if (!enabled_) {
return;
}
inst_.volume_probes.set_view(view);
inst_.sphere_probes.set_view(view);
for (Sphere &sphere : spheres_) {
sphere.framebuffer.bind();
inst_.manager->submit(sphere.pass, view);