diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-03-02 15:55:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-03-02 15:56:24 +0300 |
commit | b9e1cc931ee901b153a0c3bb59fa36df6bc7b12d (patch) | |
tree | 6a043560a2bfdf34396f01310ee2a1703b44c28e /source/blender/draw/engines | |
parent | f094b4fa08c970c48ff8f70952ecb3adf353539b (diff) |
Fix T86138 EEVEE: Bake Indirect Lighting crash in 2.93 with older files
This was caused by a missing version check.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lightcache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightcache.c b/source/blender/draw/engines/eevee/eevee_lightcache.c index 145fddf62a0..2324a538b7a 100644 --- a/source/blender/draw/engines/eevee/eevee_lightcache.c +++ b/source/blender/draw/engines/eevee/eevee_lightcache.c @@ -313,6 +313,10 @@ static bool EEVEE_lightcache_validate(const LightCache *light_cache, const int grid_len, const int irr_size[3]) { + if (!eevee_lightcache_version_check(lbake->lcache)) { + return false; + } + if (light_cache && !(light_cache->flag & LIGHTCACHE_INVALID)) { /* See if we need the same amount of texture space. */ if ((irr_size[0] == light_cache->grid_tx.tex_size[0]) && |