[Bf-blender-cvs] [3c655fd3727] blender2.8: Depsgraph: Fix missing relation update

Sergey Sharybin noreply at git.blender.org
Mon Oct 22 16:50:53 CEST 2018


Commit: 3c655fd37274acff80fbc07dd68d4fc08ce65787
Author: Sergey Sharybin
Date:   Mon Oct 22 16:49:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3c655fd37274acff80fbc07dd68d4fc08ce65787

Depsgraph: Fix missing relation update

The issue was happening when adding animation to properties
which affects different components of IDs.

Reported by Philipp Oeser as part of T56636.

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

M	source/blender/editors/animation/keyframing.c

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

diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index f25b9b5f094..f453c306cc7 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -157,10 +157,14 @@ bAction *verify_adt_action(Main *bmain, ID *id, short add)
 		 */
 		adt->action->idroot = GS(id->name);
 
-		/* tag depsgraph to be rebuilt to include time dependency */
-		DEG_relations_tag_update(bmain);
 	}
 
+	/* Tag depsgraph to be rebuilt to include time dependency.
+	 *
+	 * NOTE: Do it for all animation data modification, since existing animation
+	 * data might not include relations to the newly animated components.
+	 */
+	DEG_relations_tag_update(bmain);
 	DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE);
 
 	/* return the action */



More information about the Bf-blender-cvs mailing list