Fix T88204 EEVEE: Animated world light doesnt work during render
This was a bug uncovered by rB50782df42586. Previously, the lightcache was always discarded between redraw and forced to be updated again. Now we check for update inside the render loop making it compatible with accumulation motion blur and long exposure.
This commit is contained in:
parent
5d97e293c3
commit
610c0ecc3b
Notes:
blender-bot
2023-02-14 03:00:45 +01:00
Referenced by issue #88204, EEVEE - Animated world light doesnt work during render
|
@ -556,6 +556,11 @@ static void eevee_render_to_image(void *vedata,
|
|||
EEVEE_renderpasses_output_init(
|
||||
sldata, vedata, g_data->render_sample_count_per_timestep * time_steps_tot);
|
||||
|
||||
if (scene->world) {
|
||||
/* Update world in case of animated world material. */
|
||||
eevee_id_world_update(vedata, scene->world);
|
||||
}
|
||||
|
||||
EEVEE_temporal_sampling_create_view(vedata);
|
||||
EEVEE_render_draw(vedata, engine, render_layer, rect);
|
||||
|
||||
|
|
Loading…
Reference in New Issue