diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-11 20:49:44 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-01-17 18:21:33 +0300 |
commit | b82b608e91e868ad9afef675e63051b6401d6a7e (patch) | |
tree | 95f76b5bab6d8d8b8e7402f539e22941800bf79e | |
parent | fcdaeba7782073b4b1166ed912ad7983cd89b36c (diff) |
Fix T93007: Cycles not updating for animated Object properties like color
-rw-r--r-- | source/blender/makesrna/intern/rna_depsgraph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c index e47b6957d35..cdd47e71745 100644 --- a/source/blender/makesrna/intern/rna_depsgraph.c +++ b/source/blender/makesrna/intern/rna_depsgraph.c @@ -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) |