[Bf-blender-cvs] [96e84d002ad] master: Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work
Joshua Leung
noreply at git.blender.org
Tue Sep 26 02:29:55 CEST 2017
Commit: 96e84d002adc016a2a4bd780cd506f5e971b4c0b
Author: Joshua Leung
Date: Tue Sep 26 13:29:48 2017 +1300
Branches: master
https://developer.blender.org/rB96e84d002adc016a2a4bd780cd506f5e971b4c0b
Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work
===================================================================
M source/blender/editors/animation/drivers.c
===================================================================
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);
}
}
More information about the Bf-blender-cvs
mailing list