Fix T86138 EEVEE: Bake Indirect Lighting crash in 2.93 with older files
This was caused by a missing version check.
This commit is contained in:
@@ -313,6 +313,10 @@ static bool EEVEE_lightcache_validate(const LightCache *light_cache,
|
|||||||
const int grid_len,
|
const int grid_len,
|
||||||
const int irr_size[3])
|
const int irr_size[3])
|
||||||
{
|
{
|
||||||
|
if (!eevee_lightcache_version_check(lbake->lcache)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (light_cache && !(light_cache->flag & LIGHTCACHE_INVALID)) {
|
if (light_cache && !(light_cache->flag & LIGHTCACHE_INVALID)) {
|
||||||
/* See if we need the same amount of texture space. */
|
/* See if we need the same amount of texture space. */
|
||||||
if ((irr_size[0] == light_cache->grid_tx.tex_size[0]) &&
|
if ((irr_size[0] == light_cache->grid_tx.tex_size[0]) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user