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 Harley Acheson
parent c671b5eee4
commit 9f5290e3bc
Notes: blender-bot 2023-02-14 12:01:57 +01:00
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)