[Bf-blender-cvs] [b82b608e91e] blender-v2.83-release: Fix T93007: Cycles not updating for animated Object properties like color

Brecht Van Lommel noreply at git.blender.org
Mon Jan 17 17:16:47 CET 2022


Commit: b82b608e91e868ad9afef675e63051b6401d6a7e
Author: Brecht Van Lommel
Date:   Thu Nov 11 18:49:44 2021 +0100
Branches: blender-v2.83-release
https://developer.blender.org/rBb82b608e91e868ad9afef675e63051b6401d6a7e

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

===================================================================

M	source/blender/makesrna/intern/rna_depsgraph.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list