Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2017-09-26 03:29:48 +0300
committerJoshua Leung <aligorith@gmail.com>2017-09-26 03:29:48 +0300
commit96e84d002adc016a2a4bd780cd506f5e971b4c0b (patch)
tree5b93952a330ea75cf8d58ff5af2c1268cb4b1287 /source/blender/editors/animation/drivers.c
parentb0ccf2322b394a689a5ee730be9f87b7924fe01a (diff)
Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index 21c25f829b1..77ba46ad9cc 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -1029,6 +1029,11 @@ static int paste_driver_button_exec(bContext *C, wmOperator *op)
UI_context_update_anim_flag(C);
+ DAG_relations_tag_update(CTX_data_main(C));
+ DAG_id_tag_update(ptr.id.data, OB_RECALC_OB | OB_RECALC_DATA);
+
+ WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME_PROP, NULL); // XXX
+
MEM_freeN(path);
}
}