Fix T53400: DEG tagging is freeing Irradiance Grid when selecting objects
Ignore selection related recalc in Eevee ID update callback.
This commit is contained in:
parent
4045a51a11
commit
6cbdde1ba1
Notes:
blender-bot
2023-02-14 06:22:01 +01:00
Referenced by issue #53588, EEVEE: Temporal Super Sampling is reset by redraw tag of the gizmos Referenced by issue #53400, DEG tagging is freeing Irradiance Grid when selecting objects
|
@ -283,6 +283,13 @@ static void eevee_view_update(void *vedata)
|
|||
|
||||
static void eevee_id_update(void *UNUSED(vedata), ID *id)
|
||||
{
|
||||
/* This is a bit mask of components which update is to be ignored. */
|
||||
const int ignore_updates = ID_RECALC_COLLECTIONS;
|
||||
/* Check whether we have to do anything here. */
|
||||
if ((id->recalc & ~ignore_updates) == 0) {
|
||||
return;
|
||||
}
|
||||
/* Handle updates based on ID type. */
|
||||
const ID_Type id_type = GS(id->name);
|
||||
if (id_type == ID_OB) {
|
||||
Object *object = (Object *)id;
|
||||
|
|
Loading…
Reference in New Issue