Eevee: Fix crash during Light cache baking

This was caused by some threading conflict.
This commit is contained in:
Clément Foucault 2018-11-01 21:23:05 +01:00
parent b2a6e149a6
commit fecb09ceff
1 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,11 @@ void EEVEE_lightcache_info_update(SceneEEVEE *eevee)
LightCache *lcache = eevee->light_cache;
if (lcache != NULL) {
if (lcache->flag & LIGHTCACHE_BAKING) {
BLI_strncpy(eevee->light_cache_info, IFACE_("Baking light cache."), sizeof(eevee->light_cache_info));
return;
}
char formatted_mem[15];
BLI_str_format_byte_unit(formatted_mem, eevee_lightcache_memsize_get(lcache), true);