Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-11 20:49:44 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-12 19:09:21 +0300
commit76105eb752ed554975c9f6296bcfb9e86ccbd572 (patch)
treefb2401196d1693a17ec534731b168a9d2d187ee4 /source/blender/makesrna/intern
parentd48523cb4d4f14016084abe9140d2e0d0ddee612 (diff)
Fix T93007: Cycles not updating for animated Object properties like color
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_depsgraph.c4
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 85071e8cd19..58565fecf4d 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)