Fix T59719 Bake Indirect Lighting doesn't update env map reflection
This commit is contained in:
parent
2eead48688
commit
603a37fa89
Notes:
blender-bot
2023-02-14 11:42:40 +01:00
Referenced by issue #59719, Bake Indirect Lighting doesn't update env map reflection
|
@ -388,7 +388,7 @@ static void eevee_id_world_update(void *vedata, World *wo)
|
|||
EEVEE_WorldEngineData *wedata = EEVEE_world_data_ensure(wo);
|
||||
|
||||
if (wedata != NULL && wedata->dd.recalc != 0) {
|
||||
if ((lcache->flag & (LIGHTCACHE_BAKED | LIGHTCACHE_BAKING)) == 0) {
|
||||
if ((lcache->flag & LIGHTCACHE_BAKING) == 0) {
|
||||
lcache->flag |= LIGHTCACHE_UPDATE_WORLD;
|
||||
}
|
||||
wedata->dd.recalc = 0;
|
||||
|
|
|
@ -1209,7 +1209,9 @@ void EEVEE_lightprobes_refresh(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
|
|||
const Scene *scene_eval = DEG_get_evaluated_scene(draw_ctx->depsgraph);
|
||||
LightCache *light_cache = vedata->stl->g_data->light_cache;
|
||||
|
||||
if (light_cache->flag & LIGHTCACHE_UPDATE_WORLD) {
|
||||
if ((light_cache->flag & LIGHTCACHE_UPDATE_WORLD) &&
|
||||
(light_cache->flag & LIGHTCACHE_BAKED) == 0)
|
||||
{
|
||||
DRWMatrixState saved_mats;
|
||||
DRW_viewport_matrix_get_all(&saved_mats);
|
||||
EEVEE_lightbake_update_world_quick(sldata, vedata, scene_eval);
|
||||
|
|
Loading…
Reference in New Issue