[Bf-blender-cvs] [ee18b212014] blender2.8: Fix T57359: Crash adding a Driver and then changing frame

Sergey Sharybin noreply at git.blender.org
Wed Oct 24 09:45:18 CEST 2018


Commit: ee18b21201479e87ac8683196bb2f868e63b216b
Author: Sergey Sharybin
Date:   Wed Oct 24 09:44:57 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBee18b21201479e87ac8683196bb2f868e63b216b

Fix T57359: Crash adding a Driver and then changing frame

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

M	source/blender/editors/animation/drivers.c

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

diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index 97a600f1301..cf4ac21b7af 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -944,6 +944,7 @@ static int add_driver_button_invoke(bContext *C, wmOperator *op, const wmEvent *
 		if (success) {
 			/* send updates */
 			UI_context_update_anim_flag(C);
+			DEG_id_tag_update(ptr.id.data, DEG_TAG_COPY_ON_WRITE);
 			DEG_relations_tag_update(CTX_data_main(C));
 			WM_event_add_notifier(C, NC_ANIMATION | ND_FCURVES_ORDER, NULL);
 		}



More information about the Bf-blender-cvs mailing list