[Bf-blender-cvs] [ccb7f1d4f1e] blender2.8: Fix T55256: Animation Noise modifier does not update on value change

Joshua Leung noreply at git.blender.org
Wed May 30 14:22:34 CEST 2018


Commit: ccb7f1d4f1ef529417abb5623914dad914c1cda9
Author: Joshua Leung
Date:   Wed May 30 14:22:18 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBccb7f1d4f1ef529417abb5623914dad914c1cda9

Fix T55256: Animation Noise modifier does not update on value change

Animation needs tagging in depsgraph (for animation refresh), instead of only
tagging AnimData->recalc

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

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

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

diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c
index 681f29dbc91..61fcc0e6654 100644
--- a/source/blender/makesrna/intern/rna_fcurve.c
+++ b/source/blender/makesrna/intern/rna_fcurve.c
@@ -605,6 +605,10 @@ static void rna_FModifier_update(Main *UNUSED(bmain), Scene *UNUSED(scene), Poin
 	
 	DEG_id_tag_update(id, (GS(id->name) == ID_OB) ? OB_RECALC_OB : OB_RECALC_DATA);
 	
+	/* tag datablock for time update so that animation is recalculated,
+	 * as FModifiers affect how animation plays...
+	 */
+	DEG_id_tag_update(id, DEG_TAG_TIME);
 	if (adt != NULL) {
 		adt->recalc |= ADT_RECALC_ANIM;



More information about the Bf-blender-cvs mailing list