Fix T93007: Cycles not updating for animated Object properties like color

This commit is contained in:
Brecht Van Lommel 2021-11-11 18:49:44 +01:00 committed by Philipp Oeser
parent 9f73c9d656
commit 63aa10802b
Notes: blender-bot 2023-02-14 02:58:19 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #93434, Sculpt mode remesh broke shading
Referenced by issue #93007, Cannot animate Object Info Color in Cycles with Persistent Data ticked
1 changed files with 3 additions and 1 deletions

View File

@ -207,8 +207,10 @@ static bool rna_DepsgraphUpdate_is_updated_transform_get(PointerRNA *ptr)
static bool rna_DepsgraphUpdate_is_updated_shading_get(PointerRNA *ptr)
{
/* Assume any animated parameters can affect shading, we don't have fine
* grained enough updates to distinguish this. */
ID *id = ptr->data;
return ((id->recalc & ID_RECALC_SHADING) != 0);
return ((id->recalc & (ID_RECALC_SHADING | ID_RECALC_ANIMATION)) != 0);
}
static bool rna_DepsgraphUpdate_is_updated_geometry_get(PointerRNA *ptr)