Fix T93007: Cycles not updating for animated Object properties like color
This commit is contained in:
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
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue