diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-02-21 03:31:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-02-21 03:33:56 +0300 |
commit | 48167644b7e9798ed7a38ffd5f7324fd99007900 (patch) | |
tree | 89070bd3d8c93eead68bd1e2ad47f4978aecf74c /source/blender/draw/engines/eevee/eevee_lightcache.c | |
parent | ba43b4c04dd53d9935ce05c7c09ffe4bc8202d29 (diff) |
Fix T85603 EEVEE: Baking Indirect lighting crashes Blender
Was caused by non initialized render_timesteps.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightcache.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightcache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightcache.c b/source/blender/draw/engines/eevee/eevee_lightcache.c index c7c457711f5..145fddf62a0 100644 --- a/source/blender/draw/engines/eevee/eevee_lightcache.c +++ b/source/blender/draw/engines/eevee/eevee_lightcache.c @@ -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) { |