Fix T85603 EEVEE: Baking Indirect lighting crashes Blender

Was caused by non initialized render_timesteps.
This commit is contained in:
Clément Foucault 2021-02-21 01:31:59 +01:00
parent ba43b4c04d
commit 48167644b7
Notes: blender-bot 2023-02-14 10:35:28 +01:00
Referenced by issue #85856, Blender crashes when I try to bake the indirect lighting for Eevee
Referenced by issue #85603, EEVEE: Baking Indirect lighting crashes Blender.
1 changed files with 1 additions and 0 deletions

View File

@ -914,6 +914,7 @@ static void eevee_lightbake_cache_create(EEVEE_Data *vedata, EEVEE_LightBake *lb
stl->g_data = MEM_callocN(sizeof(*stl->g_data), __func__);
stl->g_data->background_alpha = 1.0f;
stl->g_data->render_timesteps = 1;
/* XXX TODO remove this. This is in order to make the init functions work. */
if (DRW_view_default_get() == NULL) {