Fix T67741 EEVEE: World update don't update lightcache if one viewport uses lookdev
Just a matter of not clearing the updating flag in this case.
This commit is contained in:
parent
2ad8e16c2d
commit
eace5903cb
Notes:
blender-bot
2023-02-14 05:52:32 +01:00
Referenced by issue #67741, World Editor Mapping node does not update if one of viewports is in Look Dev Mode
|
@ -402,6 +402,11 @@ static void eevee_id_world_update(void *vedata, World *wo)
|
|||
EEVEE_StorageList *stl = ((EEVEE_Data *)vedata)->stl;
|
||||
LightCache *lcache = stl->g_data->light_cache;
|
||||
|
||||
if (lcache == NULL || lcache == stl->lookdev_lightcache) {
|
||||
/* Avoid Lookdev viewport clearing the update flag (see T67741). */
|
||||
return;
|
||||
}
|
||||
|
||||
EEVEE_WorldEngineData *wedata = EEVEE_world_data_ensure(wo);
|
||||
|
||||
if (wedata != NULL && wedata->dd.recalc != 0) {
|
||||
|
|
Loading…
Reference in New Issue