[Bf-blender-cvs] [b4ebb9d8efb] blender2.8: Fix T56636: Custom property cannot be animated

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


Commit: b4ebb9d8efb202221834475e1c06b0ae3e4ffe77
Author: Sergey Sharybin
Date:   Mon Oct 22 16:43:49 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb4ebb9d8efb202221834475e1c06b0ae3e4ffe77

Fix T56636: Custom property cannot be animated

No need to tag object for time update, with new dependency graph
this forces animation to be re-evaluated, which is not something
we want in this instance.

Same patch/solution Philipp Oeser came to as well.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index b05a6bd6c1d..3cc99571ccf 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -2097,7 +2097,7 @@ static void rna_property_update(bContext *C, Main *bmain, Scene *scene, PointerR
 	if (!is_rna || (prop->flag & PROP_IDPROPERTY)) {
 		/* WARNING! This is so property drivers update the display!
 		 * not especially nice  */
-		DEG_id_tag_update(ptr->id.data, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME);
+		DEG_id_tag_update(ptr->id.data, OB_RECALC_OB | OB_RECALC_DATA);
 		WM_main_add_notifier(NC_WINDOW, NULL);
 		/* Not nice as well, but the only way to make sure material preview
 		 * is updated with custom nodes.



More information about the Bf-blender-cvs mailing list