[Bf-blender-cvs] [dc5007648c] master: Depsgraph: Fix missing relations update tag when typing #frame

Sergey Sharybin noreply at git.blender.org
Wed Mar 22 16:21:02 CET 2017


Commit: dc5007648c31a7819ade9d94fc5cd672ef56e8d7
Author: Sergey Sharybin
Date:   Wed Mar 22 14:44:12 2017 +0100
Branches: master
https://developer.blender.org/rBdc5007648c31a7819ade9d94fc5cd672ef56e8d7

Depsgraph: Fix missing relations update tag when typing #frame

New depsgraph requires relations to be updated after drivers changes.

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

M	source/blender/editors/interface/interface_anim.c

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

diff --git a/source/blender/editors/interface/interface_anim.c b/source/blender/editors/interface/interface_anim.c
index 5da294302e..a04360b339 100644
--- a/source/blender/editors/interface/interface_anim.c
+++ b/source/blender/editors/interface/interface_anim.c
@@ -39,6 +39,7 @@
 #include "BLI_utildefines.h"
 
 #include "BKE_context.h"
+#include "BKE_depsgraph.h"
 #include "BKE_fcurve.h"
 #include "BKE_global.h"
 #include "BKE_nla.h"
@@ -210,6 +211,7 @@ bool ui_but_anim_expression_create(uiBut *but, const char *str)
 
 			/* updates */
 			driver->flag |= DRIVER_FLAG_RECOMPILE;
+			DAG_relations_tag_update(CTX_data_main(C));
 			WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME, NULL);
 			ok = true;
 		}




More information about the Bf-blender-cvs mailing list