Fix T52901: New Depsgraph - Driver using "self" needs reloading file to work

This commit is contained in:
Joshua Leung 2017-09-26 13:29:48 +13:00
parent b0ccf2322b
commit 96e84d002a
Notes: blender-bot 2023-02-14 06:31:20 +01:00
Referenced by issue #53683, 2.79a release
Referenced by issue #52901, New Depsgraph - Driver using "self" needs reloading file to work.
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}
}