From c7e0bb0b901e264cc5b9a505daf47ab8b6da9142 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 1 May 2018 17:46:51 +0200 Subject: Depsgraph: Make bAction a part of dependency graph There are various values which depends on context in there, for example current driver value and original DNA value f-curve is applied for. This partially fixes issue with not being able to tweak keyed values when material preview is open. The material preview is not being currently updated against non-keyed changes since every tweak of material property does full preview scene depsgraph evaluation. --- source/blender/editors/animation/keyframing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/animation/keyframing.c') diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index b490ae9c097..7b637e5b725 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -159,7 +159,9 @@ bAction *verify_adt_action(ID *id, short add) /* XXX: we probably should have bmain passed down, but that involves altering too many API's */ DEG_relations_tag_update(G.main); } - + + DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE); + /* return the action */ return adt->action; } -- cgit v1.2.3